summaryrefslogtreecommitdiffstats
path: root/embedding
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-08-21 22:41:20 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-08-21 22:41:20 (GMT)
commitb3c7a989ebf1ac9342d17a1130e99663d7471cdf (patch)
treedf15fd4b243ff5733f7a3f9aec4a3bc131481b96 /embedding
parentf7ad82f972bf46571bb5229205f877f8ab31069d (diff)
downloaduscxml-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.java8
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);
}