diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-08-21 22:41:20 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-08-21 22:41:20 (GMT) |
commit | b3c7a989ebf1ac9342d17a1130e99663d7471cdf (patch) | |
tree | df15fd4b243ff5733f7a3f9aec4a3bc131481b96 /embedding | |
parent | f7ad82f972bf46571bb5229205f877f8ab31069d (diff) | |
download | uscxml-b3c7a989ebf1ac9342d17a1130e99663d7471cdf.zip uscxml-b3c7a989ebf1ac9342d17a1130e99663d7471cdf.tar.gz uscxml-b3c7a989ebf1ac9342d17a1130e99663d7471cdf.tar.bz2 |
More issues being idenified via interpreter.validate()
Diffstat (limited to 'embedding')
-rw-r--r-- | embedding/java/src/org/uscxml/tests/TestValidation.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/embedding/java/src/org/uscxml/tests/TestValidation.java b/embedding/java/src/org/uscxml/tests/TestValidation.java index f09f678..2177214 100644 --- a/embedding/java/src/org/uscxml/tests/TestValidation.java +++ b/embedding/java/src/org/uscxml/tests/TestValidation.java @@ -14,18 +14,16 @@ public class TestValidation { String xml = "<scxml datamodel=\"ecmascript\">" + " <state id=\"start\">" + - " <transition target=\"done\" cond=\"%sf\" />" + + " <transition target=\"don\" cond=\"%sf\" />" + " </state>" + - " <final id=\"done\" />" + + " <final />" + "</scxml>"; Interpreter interpreter = Interpreter.fromXML(xml); IssueList issues = interpreter.validate(); for (int i = 0; i < issues.size(); i++) { System.out.println(issues.get(i)); } - - throw new RuntimeException(""); - + } catch (InterpreterException e) { System.err.println(e); } |