View Javadoc
1   
2   package eu.simuline.relana.sys;
3   
4   import        eu.simuline.testhelpers.Actions;
5   // import eu.simuline.testhelpers.Accessor;
6   // import eu.simuline.testhelpers.Assert;
7   
8   // import static org.junit.Assert.assertEquals;
9   // import static org.junit.Assert.assertTrue;
10  // import static org.junit.Assert.assertNull;
11  // import static org.junit.Assert.fail;
12  
13  import org.junit.Test;
14  //import org.junit.BeforeClass;
15  //import org.junit.Before;
16  //import org.junit.After;
17  import org.junit.runner.RunWith;
18  import org.junit.runners.Suite;
19  import org.junit.runners.Suite.SuiteClasses;
20  
21  
22  /**
23   * RelanaTest.java
24   *
25   *
26   * Created: Mon May 23 21:23:07 2005
27   *
28   * @author <a href="mailto:ernst@local">Ernst Reissner</a>
29   * @version 1.0
30   */ 
31  @RunWith(Suite.class)
32  @SuiteClasses({RelanaTest.TestAll.class})
33  public class RelanaTest {
34  
35      private final static String ROOT = 
36      "file://" + 
37  	System.getProperty("tstModelDir") + 
38  	"eu/simuline/relana/";
39  
40      /* -------------------------------------------------------------------- *
41       * framework.                                                           *
42       * -------------------------------------------------------------------- */
43  
44  
45      static RelanaTest TEST = new RelanaTest();
46  
47      public static class TestAll {
48  	@Test public void testTinyPlane() throws Exception {
49  	    RelanaTest.TEST.testTinyPlane();
50  	}
51  	@Test public void testTinyPlaneAdd() throws Exception {
52  	    RelanaTest.TEST.testTinyPlaneAdd();
53  	}
54  	@Test public void testTinyPlaneB() throws Exception {
55  	    RelanaTest.TEST.testTinyPlaneB();
56  	}
57  	@Test public void testProj() throws Exception {
58  	    RelanaTest.TEST.testProj();
59  	}
60  	@Test public void testOrdMaps() throws Exception {
61  	    RelanaTest.TEST.testOrdMaps();
62  	}
63      } // class TestAll
64  
65      /* -------------------------------------------------------------------- *
66       * methods for tests.                                                   *
67       * -------------------------------------------------------------------- */
68  
69  
70  
71  	public void testTinyPlane() throws Exception {
72  	    Relana.main(new String[] {ROOT + "tinyPlane.rml"});
73  	    Relana.main(new String[] {ROOT + "tinyPlane2.rml"});
74  	    Relana.main(new String[] {ROOT + "tinyPlane3.rml"});
75  	}
76  	public void testTinyPlaneAdd() throws Exception {
77  	    Relana.main(new String[] {ROOT + "tinyPlaneAdd.rml"});
78  	}
79  	public void testTinyPlaneB() throws Exception {
80  	    Relana.main(new String[] {ROOT + "tinyPlaneB2.rml"});
81  	    //Relana.main(new String[] {ROOT + "tinyPlaneB3.rml"});
82  	}
83  
84  	public void testProj() throws Exception {
85  	    Relana.main(new String[] {ROOT + "proj.rml"});
86  	}
87  
88  	public void testOrdMaps() throws Exception {
89  	    Relana.main(new String[] {ROOT + "OrdMaps.rml"});
90  	}
91  
92      /* -------------------------------------------------------------------- *
93       * framework.                                                           *
94       * -------------------------------------------------------------------- */
95  
96      /**
97       * Runs the test case.
98       *
99       * Uncomment either the textual UI, Swing UI, or AWT UI.
100      */
101     public static void main(String args[]) {
102 	Actions.runFromMain();
103     }
104 
105 } // RelanaTest