commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r601185 - in /commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml: TieBreakerTest.java tie-breaker-06.xml
Date Wed, 05 Dec 2007 01:45:58 GMT
Author: rahul
Date: Tue Dec  4 17:45:57 2007
New Revision: 601185

URL: http://svn.apache.org/viewvc?rev=601185&view=rev
Log:
Change test case to use new <event> tag.

Modified:
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/TieBreakerTest.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/tie-breaker-06.xml

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/TieBreakerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/TieBreakerTest.java?rev=601185&r1=601184&r2=601185&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/TieBreakerTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/TieBreakerTest.java
Tue Dec  4 17:45:57 2007
@@ -159,7 +159,7 @@
     }
 
     public void testTieBreaker06() {
-        exec = SCXMLTestHelper.getExecutor(tiebreaker06);
+        exec = SCXMLTestHelper.getExecutor(SCXMLTestHelper.parse(tiebreaker06));
         assertNotNull(exec);
         Set currentStates = exec.getCurrentStatus().getStates();
         assertEquals(1, currentStates.size());

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/tie-breaker-06.xml
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/tie-breaker-06.xml?rev=601185&r1=601184&r2=601185&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/tie-breaker-06.xml (original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/tie-breaker-06.xml Tue
Dec  4 17:45:57 2007
@@ -22,17 +22,17 @@
   <state id="main">
 
     <onentry>
-      <send event="internal_event1"/>
-      <send event="internal_event2"/>
+      <event name="internal_event1"/>
+      <event name="internal_event2"/>
     </onentry>
 
     <transition event="internal_event1">
       <log label="Expected"
-           expr="'Transition for first send (internal_event1) followed'"/>
+           expr="'Transition for first event (internal_event1) followed'"/>
     </transition>
     <transition event="internal_event2">
       <log label="Unexpected"
-           expr="'Transition for second send (internal_event2) followed'"/>
+           expr="'Transition for second event (internal_event2) followed'"/>
     </transition>
 
   </state>



Mime
View raw message