diff options
| author | ogattaz <olivier@gattaz.com> | 2014-07-07 10:59:14 +0200 |
|---|---|---|
| committer | ogattaz <olivier@gattaz.com> | 2014-07-07 10:59:14 +0200 |
| commit | 6772bfb46b72d859c316a9f6573d0c6be477ad5c (patch) | |
| tree | dafa343584216685e68b6edae37570eb97cf9d0c /src/test/java/MainTest.java | |
| parent | 2fd193d7936084de91eae46e8c2763914d87ab71 (diff) | |
| parent | 0b689a787288f5a4ba568157905c3a0577f83821 (diff) | |
Merge branch 'master' of ssh://dev.cccs.uwe.ac.uk:22/var/git/cristal-kernel
Diffstat (limited to 'src/test/java/MainTest.java')
| -rw-r--r-- | src/test/java/MainTest.java | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/test/java/MainTest.java b/src/test/java/MainTest.java index 4c70579..2559c67 100644 --- a/src/test/java/MainTest.java +++ b/src/test/java/MainTest.java @@ -11,6 +11,7 @@ import com.c2kernel.persistency.outcome.Schema; import com.c2kernel.persistency.outcome.SchemaValidator;
import com.c2kernel.process.Gateway;
import com.c2kernel.scripting.Script;
+import com.c2kernel.utils.CastorXMLUtility;
import com.c2kernel.utils.FileStringUtility;
import com.c2kernel.utils.Logger;
@@ -23,12 +24,20 @@ public class MainTest { me.testStateMachine();
}
- public MainTest() throws Exception {
- Logger.addLogStream(System.out, 1);
- Properties props = FileStringUtility.loadConfigFile(MainTest.class.getResource("server.conf").getPath());
- Gateway.init(props);
- XMLUnit.setIgnoreWhitespace(true);
- XMLUnit.setIgnoreComments(true);
+ public MainTest() {
+ try {
+ Logger.addLogStream(System.out, 1);
+ Properties props = FileStringUtility.loadConfigFile(MainTest.class.getResource("server.conf").getPath());
+ Gateway.init(props);
+ XMLUnit.setIgnoreWhitespace(true);
+ XMLUnit.setIgnoreComments(true);
+ } catch (Exception ex) {
+ Logger.error(ex);
+ }
+ }
+
+ public void testMapFiles() throws Exception {
+ new CastorXMLUtility(Gateway.getResource().getKernelResourceURL("mapFiles/"));
}
public void testBootItems() throws Exception {
|
