01: package net.xoetrope.xui.test;
02:
03: import java.awt.Image;
04:
05: import junit.framework.TestCase;
06: import net.xoetrope.xui.XProjectManager;
07: import net.xoetrope.xui.XResourceManager;
08:
09: /**
10: * Title: Xui
11: * Description:
12: * Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
13: * Company: Xoetrope Ltd.
14: * @author Xoetrope Ltd.
15: * @version 1.0
16: */
17:
18: public class TestXResourceManager extends TestCase {
19:
20: public TestXResourceManager() {
21: }
22:
23: public void testLoadResources() {
24: XResourceManager resourceMgr = XProjectManager
25: .getResourceManager();
26: Image img = resourceMgr.getImage("home.gif");
27: }
28:
29: public void testLoadStartFile() {
30: XResourceManager resourceMgr = XProjectManager
31: .getResourceManager();
32: resourceMgr.setStartupFile("/resources/startup.properties");
33: String startClass = null;
34: try {
35: startClass = resourceMgr.getStartupParam("StartClass");
36: } catch (Exception ex) {
37: ex.printStackTrace();
38: }
39: this.assertTrue(startClass != null);
40: }
41: }
|