diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2013-07-20 11:56:53 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2013-09-16 12:44:14 +0200 |
| commit | 0bb38e90ac6e88cb406facbc075983384a2e164f (patch) | |
| tree | ecf3c14715580b742773ba79ef2b9895e687fcfa /src/test/java/MainTest.java | |
| parent | d9722227d4b17704dcdf02b30121321bac533efe (diff) | |
ActivityDef is a DescriptionObject
Diffstat (limited to 'src/test/java/MainTest.java')
| -rw-r--r-- | src/test/java/MainTest.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/test/java/MainTest.java b/src/test/java/MainTest.java index c292df9..99e293a 100644 --- a/src/test/java/MainTest.java +++ b/src/test/java/MainTest.java @@ -5,6 +5,7 @@ import java.util.StringTokenizer; import org.custommonkey.xmlunit.XMLUnit;
import com.c2kernel.common.ObjectNotFoundException;
+import com.c2kernel.lifecycle.instance.stateMachine.StateMachine;
import com.c2kernel.persistency.outcome.OutcomeValidator;
import com.c2kernel.persistency.outcome.Schema;
import com.c2kernel.persistency.outcome.SchemaValidator;
@@ -16,8 +17,6 @@ import com.c2kernel.utils.Resource; public class MainTest {
-
-
public MainTest() throws Exception {
Logger.addLogStream(System.out, 1);
Properties props = FileStringUtility.loadConfigFile(MainTest.class.getResource("properties.conf").getPath());
@@ -51,7 +50,7 @@ public class MainTest { }
assert errors.length()==0;
- if (itemType.equals("CA") || itemType.equals("EA")) {
+ if (false) if (itemType.equals("CA") || itemType.equals("EA")) {
Logger.msg(1, "Remarshalling "+thisItem);
long then = System.currentTimeMillis();
Object unmarshalled = Gateway.getMarshaller().unmarshall(data);
@@ -103,4 +102,10 @@ public class MainTest { assert result instanceof String;
assert ((String)result).equals("TestTest");
}
+
+ public void testStateMachine() throws Exception {
+ String smXml = FileStringUtility.url2String(MainTest.class.getResource("TestStateMachine.xml"));
+ StateMachine sm = (StateMachine)Gateway.getMarshaller().unmarshall(smXml);
+ assert sm!=null;
+ }
}
|
