JaRMoS  1.1
Java Reduced Model Simulations
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
AModelManagerTest.java
Go to the documentation of this file.
1 
4 package jarmos.test;
5 
6 import static org.junit.Assert.assertTrue;
7 import static org.junit.Assert.fail;
11 
12 import org.junit.Test;
13 
19 public class AModelManagerTest {
20 
21  // /**
22  // * Test method for {@link jarmos.io.AModelManager#getModelXMLAttribute(java.lang.String)}.
23  // */
24  // @Test
25  // public void testGetModelXMLAttributeString() {
26  // fail("Not yet implemented");
27  // }
28  //
29  // /**
30  // * Test method for {@link jarmos.io.AModelManager#getModelXMLAttribute(java.lang.String, java.lang.String)}.
31  // */
32  // @Test
33  // public void testGetModelXMLAttributeStringString() {
34  // fail("Not yet implemented");
35  // }
36 
40  @Test
41  public void testGetModelXMLTagValue() {
42  AModelManager m = new FileModelManager(".");
43  try {
44  m.useModel("test");
45  } catch (ModelManagerException e) {
46  fail(e.getMessage());
47  e.printStackTrace();
48  }
49  assertTrue("someimage!".equals(m.getModelXMLTagValue("description.image")));
50  assertTrue("someshortdesc".equals(m.getModelXMLTagValue("description.short")));
51  assertTrue(m.getModelXMLTagValue("nonexistent.not.really") == null);
52  }
53 
54 }
Manages models loaded from the file system available via the java.io classes.
This class serves as base class for accessing various types of models at different locations...
This Exception gets thrown when an error occurs regarding the functionality of the ModelManager...