commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1579101 - /commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/io/SCXMLWriterTest.java
Date Wed, 19 Mar 2014 00:36:13 GMT
Author: ate
Date: Wed Mar 19 00:36:12 2014
New Revision: 1579101

URL: http://svn.apache.org/r1579101
Log:
SCXML-196: fix testcase, manual created State requires an id now

Modified:
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/io/SCXMLWriterTest.java

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/io/SCXMLWriterTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/io/SCXMLWriterTest.java?rev=1579101&r1=1579100&r2=1579101&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/io/SCXMLWriterTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/io/SCXMLWriterTest.java
Wed Mar 19 00:36:12 2014
@@ -42,7 +42,9 @@ public class SCXMLWriterTest {
         scxml.setNamespaces(namespaces);
         scxml.setVersion("version1");
         scxml.setInitial("off");
-        scxml.addChild(new State());
+        State s = new State();
+        s.setId(scxml.generateTransitionTargetId());
+        scxml.addChild(s);
         
         String assertValue = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
             + "<scxml xmlns=\"http://www.w3.org/2005/07/scxml\" xmlns:cs=\"http://commons.apache.org/scxml\"
"



Mime
View raw message