diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2014-06-11 23:38:35 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2014-06-11 23:38:35 +0200 |
| commit | 14e2fe28c2b7ecaae53a10d1aa7aa4b921b6efbc (patch) | |
| tree | 84b2b6886cde64a08c33a6b027681f9068414b76 /src/test/java | |
| parent | 2353f4fc4252f7067478d6a9d8993daeb5d66e6a (diff) | |
Separate PredefinedStepContainers for Agents and Items (and Server Item)
Diffstat (limited to 'src/test/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 {
|
