diff options
Diffstat (limited to 'src/test/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;
+ }
}
|
