1
2 package eu.simuline.relana.sys;
3
4 import eu.simuline.testhelpers.Actions;
5
6
7
8
9
10
11
12
13 import org.junit.Test;
14
15
16
17 import org.junit.runner.RunWith;
18 import org.junit.runners.Suite;
19 import org.junit.runners.Suite.SuiteClasses;
20
21
22
23
24
25
26
27
28
29
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
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 }
64
65
66
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
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
94
95
96
97
98
99
100
101 public static void main(String args[]) {
102 Actions.runFromMain();
103 }
104
105 }