diff options
Diffstat (limited to 'contrib/java/src/org/uscxml/tests/TestJavaScriptDataModel.java')
-rw-r--r-- | contrib/java/src/org/uscxml/tests/TestJavaScriptDataModel.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/contrib/java/src/org/uscxml/tests/TestJavaScriptDataModel.java b/contrib/java/src/org/uscxml/tests/TestJavaScriptDataModel.java index 3621a19..7399c94 100644 --- a/contrib/java/src/org/uscxml/tests/TestJavaScriptDataModel.java +++ b/contrib/java/src/org/uscxml/tests/TestJavaScriptDataModel.java @@ -2,23 +2,24 @@ package org.uscxml.tests; import org.uscxml.Factory; import org.uscxml.Interpreter; -import org.uscxml.ECMAScriptDataModel; +import org.uscxml.datamodel.ecmascript.ECMAScriptDataModel; public class TestJavaScriptDataModel { public static void main(String[] args) { // load JNI library from build directory System.load("/Users/sradomski/Documents/TK/Code/uscxml/build/cli/lib/libuscxmlNativeJava64.jnilib"); - + // register java datamodel at factory - ECMAScriptDataModel datamodel = new ECMAScriptDataModel(); + ECMAScriptDataModel datamodel = new ECMAScriptDataModel(); Factory.getInstance().registerDataModel(datamodel); - + // instantiate interpreter with document from file - Interpreter interpreter = Interpreter.fromURI("/Users/sradomski/Documents/TK/Code/uscxml/test/uscxml/java/test-ecmascript-datamodel.scxml"); + Interpreter interpreter = Interpreter + .fromURI("/Users/sradomski/Documents/TK/Code/uscxml/test/uscxml/java/test-ecmascript-datamodel.scxml"); // wait until interpreter has finished - while(true) + while (true) interpreter.interpret(); } |