Package net.xoetrope.xui.test

Source Code of net.xoetrope.xui.test.TestXResourceManager

package net.xoetrope.xui.test;

import java.awt.Image;

import junit.framework.TestCase;
import net.xoetrope.awt.XApplet;
import net.xoetrope.xui.XProject;
import net.xoetrope.xui.XProjectManager;

/**
* Title:        Xui
* Description:
* Copyright:    Copyright (c) Xoetrope Ltd., 1998-2003
* Company:      Xoetrope Ltd.
* @author Xoetrope Ltd.
* @version 1.0
*/

public class TestXResourceManager extends TestCase
{
  private XProject project;

  public TestXResourceManager()
  {
    XApplet applet = new XApplet();
    project = XProjectManager.getCurrentProject( applet );
  }

  public void testLoadResources()
  {
    Image img = project.getImage("home.gif");
  }

  public void testLoadStartFile()
  {
    String startClass = null;
    try {
      startClass = project.getStartupParam( "StartClass" );
    }
    catch ( Exception ex ) {
      ex.printStackTrace();
    }
    this.assertTrue( startClass!=null );
  }
}
TOP

Related Classes of net.xoetrope.xui.test.TestXResourceManager

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.