commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r731393 - in /commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml: ./ env/jexl/ invoke/ io/ issues/ model/
Date Mon, 05 Jan 2009 00:19:34 GMT
Author: sebb
Date: Sun Jan  4 16:19:33 2009
New Revision: 731393

URL: http://svn.apache.org/viewvc?rev=731393&view=rev
Log:
Prepare for changes to SCXMLTestHelper

Modified:
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/NamespacePrefixedXPathsTest.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLExecutorTest.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/TieBreakerTest.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/env/jexl/StaticMethodTest.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/invoke/InvokeParamNameTest.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/io/SCXMLDigesterTest.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/io/SCXMLParserTest.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/io/StateSrcTest.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/issues/Issue62Test.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/issues/Issue64Test.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/ActionsTest.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/AssignTest.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/CustomActionTest.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/DatamodelTest.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/HistoryTest.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/StateTest.java
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/StatelessModelTest.java

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/NamespacePrefixedXPathsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/NamespacePrefixedXPathsTest.java?rev=731393&r1=731392&r2=731393&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/NamespacePrefixedXPathsTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/NamespacePrefixedXPathsTest.java
Sun Jan  4 16:19:33 2009
@@ -54,7 +54,7 @@
     /**
      * Set up instance variables required by this test case.
      */
-    public void setUp() {
+    public void setUp() throws Exception {
         datamodel03jexl = this.getClass().getClassLoader().
             getResource("org/apache/commons/scxml/env/jexl/datamodel-03.xml");
         datamodel03jsp = this.getClass().getClassLoader().

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLExecutorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLExecutorTest.java?rev=731393&r1=731392&r2=731393&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLExecutorTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLExecutorTest.java
Sun Jan  4 16:19:33 2009
@@ -154,7 +154,7 @@
         checkMicrowave02Sample();
     }
     
-    public void testSCXMLExecutorPrefix01Sample() {
+    public void testSCXMLExecutorPrefix01Sample() throws Exception {
         exec = SCXMLTestHelper.getExecutor(prefix01);
         assertNotNull(exec);
         Set currentStates = exec.getCurrentStatus().getStates();

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=731393&r1=731392&r2=731393&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
Sun Jan  4 16:19:33 2009
@@ -87,7 +87,7 @@
     /**
      * Test the implementation
      */
-    public void testTieBreaker01() {
+    public void testTieBreaker01() throws Exception {
         exec = SCXMLTestHelper.getExecutor(tiebreaker01);
         assertNotNull(exec);
         Set currentStates = exec.getCurrentStatus().getStates();
@@ -100,7 +100,7 @@
             next()).getId());
     }
 
-    public void testTieBreaker02() {
+    public void testTieBreaker02() throws Exception {
         exec = SCXMLTestHelper.getExecutor(tiebreaker02);
         assertNotNull(exec);
         Set currentStates = exec.getCurrentStatus().getStates();
@@ -113,7 +113,7 @@
             next()).getId());
     }
 
-    public void testTieBreaker03() {
+    public void testTieBreaker03() throws Exception {
         exec = SCXMLTestHelper.getExecutor(tiebreaker03);
         assertNotNull(exec);
         Set currentStates = exec.getCurrentStatus().getStates();
@@ -126,7 +126,7 @@
             next()).getId());
     }
 
-    public void testTieBreaker04() {
+    public void testTieBreaker04() throws Exception {
         exec = SCXMLTestHelper.getExecutor(tiebreaker04);
         assertNotNull(exec);
         Set currentStates = SCXMLTestHelper.fireEvent(exec, "event_2");
@@ -135,7 +135,7 @@
         assertEquals(1, currentStates.size());
     }
 
-    public void testTieBreaker05() {
+    public void testTieBreaker05() throws Exception {
         exec = SCXMLTestHelper.getExecutor(tiebreaker05);
         assertNotNull(exec);
         Set currentStates = exec.getCurrentStatus().getStates();
@@ -158,7 +158,7 @@
         }
     }
 
-    public void testTieBreaker06() {
+    public void testTieBreaker06() throws Exception {
         exec = SCXMLTestHelper.getExecutor(SCXMLTestHelper.parse(tiebreaker06));
         assertNotNull(exec);
         Set currentStates = exec.getCurrentStatus().getStates();

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/env/jexl/StaticMethodTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/env/jexl/StaticMethodTest.java?rev=731393&r1=731392&r2=731393&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/env/jexl/StaticMethodTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/env/jexl/StaticMethodTest.java
Sun Jan  4 16:19:33 2009
@@ -60,7 +60,7 @@
         staticmethod = null;
     }
 
-    public void testJexlStaticMethodInvocation() {
+    public void testJexlStaticMethodInvocation() throws Exception {
         Context jc = new JexlContext();
         jc.set("System", System.class);
         SCXMLExecutor exec = SCXMLTestHelper.getExecutor(staticmethod,

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/invoke/InvokeParamNameTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/invoke/InvokeParamNameTest.java?rev=731393&r1=731392&r2=731393&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/invoke/InvokeParamNameTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/invoke/InvokeParamNameTest.java
Sun Jan  4 16:19:33 2009
@@ -57,7 +57,7 @@
     static String lastSource;
     static Map lastParams;
     
-    public void setUp() {
+    public void setUp() throws Exception {
         invoker04 = this.getClass().getClassLoader().
             getResource("org/apache/commons/scxml/invoke/invoker-04.xml");
         exec = SCXMLTestHelper.getExecutor(invoker04,

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/io/SCXMLDigesterTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/io/SCXMLDigesterTest.java?rev=731393&r1=731392&r2=731393&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/io/SCXMLDigesterTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/io/SCXMLDigesterTest.java
Sun Jan  4 16:19:33 2009
@@ -80,35 +80,35 @@
     /**
      * Test the implementation
      */
-    public void testSCXMLDigesterMicrowave01Sample() {
+    public void testSCXMLDigesterMicrowave01Sample() throws Exception {
         scxml = SCXMLTestHelper.digest(microwave01);
         assertNotNull(scxml);
         scxmlAsString = serialize(scxml);
         assertNotNull(scxmlAsString);
     }
 
-    public void testSCXMLDigesterMicrowave02Sample() {
+    public void testSCXMLDigesterMicrowave02Sample() throws Exception {
         scxml = SCXMLTestHelper.digest(microwave02);
         assertNotNull(scxml);
         scxmlAsString = serialize(scxml);
         assertNotNull(scxmlAsString);
     }
 
-    public void testSCXMLDigesterTransitions01Sample() {
+    public void testSCXMLDigesterTransitions01Sample() throws Exception {
         scxml = SCXMLTestHelper.digest(transitions01);
         assertNotNull(scxml);
         scxmlAsString = serialize(scxml);
         assertNotNull(scxmlAsString);
     }
 
-    public void testSCXMLDigesterPrefix01Sample() {
+    public void testSCXMLDigesterPrefix01Sample() throws Exception {
         scxml = SCXMLTestHelper.digest(prefix01);
         assertNotNull(scxml);
         scxmlAsString = serialize(scxml);
         assertNotNull(scxmlAsString);
     }
 
-    public void testSCXMLDigesterSend01Sample() {
+    public void testSCXMLDigesterSend01Sample() throws Exception {
         // Digest
         scxml = SCXMLTestHelper.digest(send01);
         State ten = (State) scxml.getInitialTarget();

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/io/SCXMLParserTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/io/SCXMLParserTest.java?rev=731393&r1=731392&r2=731393&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/io/SCXMLParserTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/io/SCXMLParserTest.java
Sun Jan  4 16:19:33 2009
@@ -73,21 +73,21 @@
     /**
      * Test the implementation
      */
-    public void testSCXMLParserMicrowave03Sample() {
+    public void testSCXMLParserMicrowave03Sample() throws Exception {
         scxml = SCXMLTestHelper.parse(microwave03);
         assertNotNull(scxml);
         scxmlAsString = serialize(scxml);
         assertNotNull(scxmlAsString);
     }
 
-    public void testSCXMLParserMicrowave04Sample() {
+    public void testSCXMLParserMicrowave04Sample() throws Exception {
         scxml = SCXMLTestHelper.parse(microwave04);
         assertNotNull(scxml);
         scxmlAsString = serialize(scxml);
         assertNotNull(scxmlAsString);
     }
 
-    public void testSCXMLParserInitialAttr() {
+    public void testSCXMLParserInitialAttr() throws Exception {
         scxml = SCXMLTestHelper.parse(scxmlinitialattr);
         assertNotNull(scxml);
         scxmlAsString = serialize(scxml);

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/io/StateSrcTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/io/StateSrcTest.java?rev=731393&r1=731392&r2=731393&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/io/StateSrcTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/io/StateSrcTest.java
Sun Jan  4 16:19:33 2009
@@ -78,7 +78,7 @@
     /**
      * Test the implementation
      */
-    public void testRecursiveSrcInclude() {
+    public void testRecursiveSrcInclude() throws Exception {
         scxml = SCXMLTestHelper.digest(src01);
         assertNotNull(scxml);
         exec = SCXMLTestHelper.getExecutor(scxml);

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/issues/Issue62Test.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/issues/Issue62Test.java?rev=731393&r1=731392&r2=731393&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/issues/Issue62Test.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/issues/Issue62Test.java
Sun Jan  4 16:19:33 2009
@@ -67,7 +67,7 @@
         exec = null;
     }
 
-    public void test01issue62() {
+    public void test01issue62() throws Exception {
         exec = SCXMLTestHelper.getExecutor(test01);
         Set currentStates = exec.getCurrentStatus().getStates();
         assertEquals(1, currentStates.size());
@@ -76,17 +76,17 @@
         SCXMLTestHelper.assertPostTriggerState(exec, "foo", "s1.1");
     }
 
-    public void test02issue62() {
+    public void test02issue62() throws Exception {
         exec = SCXMLTestHelper.getExecutor(test02);
         fragmenttest();
     }
 
-    public void test03issue62() {
+    public void test03issue62() throws Exception {
         exec = SCXMLTestHelper.getExecutor(SCXMLTestHelper.parse(test03));
         fragmenttest();
     }
 
-    private void fragmenttest() {
+    private void fragmenttest() throws Exception {
         Set currentStates = exec.getCurrentStatus().getStates();
         assertEquals(1, currentStates.size());
         assertEquals("s1", ((State)currentStates.iterator().

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/issues/Issue64Test.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/issues/Issue64Test.java?rev=731393&r1=731392&r2=731393&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/issues/Issue64Test.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/issues/Issue64Test.java
Sun Jan  4 16:19:33 2009
@@ -63,12 +63,12 @@
         exec = null;
     }
 
-    public void test01issue64() {
+    public void test01issue64() throws Exception {
         exec = SCXMLTestHelper.getExecutor(SCXMLTestHelper.parse(works));
         SCXMLTestHelper.assertPostTriggerState(exec, "show.bug", "end");
     }
 
-    public void test02issue64() {
+    public void test02issue64() throws Exception {
         exec = SCXMLTestHelper.getExecutor(SCXMLTestHelper.parse(fails));
         SCXMLTestHelper.assertPostTriggerState(exec, "show.bug", "end");
     }

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/ActionsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/ActionsTest.java?rev=731393&r1=731392&r2=731393&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/ActionsTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/ActionsTest.java
Sun Jan  4 16:19:33 2009
@@ -86,22 +86,22 @@
     /**
      * Test the implementation
      */
-    public void testStateActions() {
+    public void testStateActions() throws Exception {
         SCXML scxml = SCXMLTestHelper.parse(actionsSample01);
         runTest(scxml);
     }
 
-    public void testParallelActions() {
+    public void testParallelActions() throws Exception {
         SCXML scxml = SCXMLTestHelper.parse(actionsSample02);
         runTest(scxml);
     }
 
-    public void testInitialActions() {
+    public void testInitialActions() throws Exception {
         SCXML scxml = SCXMLTestHelper.parse(actionsSample03);
         runTest(scxml);
     }
 
-    private void runTest(SCXML scxml) {
+    private void runTest(SCXML scxml) throws Exception {
         exec = SCXMLTestHelper.getExecutor(scxml, ctx, evaluator);
         ELContext ctx = (ELContext) SCXMLTestHelper.lookupContext(exec,
             "actionsTest");

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/AssignTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/AssignTest.java?rev=731393&r1=731392&r2=731393&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/AssignTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/AssignTest.java
Sun Jan  4 16:19:33 2009
@@ -69,7 +69,7 @@
     /**
      * Test the implementation
      */
-    public void testAssignSrc() {
+    public void testAssignSrc() throws Exception {
         exec = SCXMLTestHelper.getExecutor(assign01);
         Set currentStates = exec.getCurrentStatus().getStates();
         assertEquals(1, currentStates.size());
@@ -78,7 +78,7 @@
         assertTrue(exec.getCurrentStatus().isFinal());
     }
 
-    public void testAssignDeep() {
+    public void testAssignDeep() throws Exception {
         exec = SCXMLTestHelper.getExecutor(assign02);
         Set currentStates = exec.getCurrentStatus().getStates();
         assertEquals(1, currentStates.size());

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/CustomActionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/CustomActionTest.java?rev=731393&r1=731392&r2=731393&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/CustomActionTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/CustomActionTest.java
Sun Jan  4 16:19:33 2009
@@ -136,7 +136,7 @@
     }
 
     // Hello World example using the SCXML <log> action
-    public void testHelloWorld() {
+    public void testHelloWorld() throws Exception {
         // (1) Get a SCXMLExecutor
         exec = SCXMLTestHelper.getExecutor(hello01);
         // (2) Single, final state
@@ -146,7 +146,7 @@
     }
 
     // Hello World example using a custom <hello> action
-    public void testCustomActionHelloWorld() {
+    public void testCustomActionHelloWorld() throws Exception {
         // (1) Form a list of custom actions defined in the SCXML
         //     document (and any included documents via "src" attributes)
         CustomAction ca1 =
@@ -172,7 +172,7 @@
 
     // Hello World example using custom <my:hello> action
     // as part of an external state source (src attribute)
-    public void testCustomActionExternalSrcHelloWorld() {
+    public void testCustomActionExternalSrcHelloWorld() throws Exception {
         // (1) Form a list of custom actions defined in the SCXML
         //     document (and any included documents via "src" attributes)
         CustomAction ca =
@@ -191,7 +191,7 @@
 
     // Hello World example using custom <my:send> action
     // (overriding SCXML local name "send")
-    public void testCustomActionOverrideLocalName() {
+    public void testCustomActionOverrideLocalName() throws Exception {
         // (1) List of custom actions, use same local name as SCXML action
         CustomAction ca =
             new CustomAction("http://my.custom-actions.domain/CUSTOM",
@@ -215,7 +215,7 @@
 
     // Hello World example using custom <my:hello> action that generates an
     // event which has the payload examined with JEXL expressions
-    public void testCustomActionEventPayloadHelloWorldJexl() {
+    public void testCustomActionEventPayloadHelloWorldJexl() throws Exception {
         // (1) Form a list of custom actions defined in the SCXML
         //     document (and any included documents via "src" attributes)
         CustomAction ca =
@@ -247,7 +247,7 @@
 
     // Hello World example using custom <my:hello> action that generates an
     // event which has the payload examined with EL expressions
-    public void testCustomActionEventPayloadHelloWorldEL() {
+    public void testCustomActionEventPayloadHelloWorldEL() throws Exception {
         // (1) Form a list of custom actions defined in the SCXML
         //     document (and any included documents via "src" attributes)
         CustomAction ca =

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/DatamodelTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/DatamodelTest.java?rev=731393&r1=731392&r2=731393&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/DatamodelTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/DatamodelTest.java
Sun Jan  4 16:19:33 2009
@@ -114,7 +114,7 @@
         runtest();
     }
 
-    public void testDatamodel04Jexl() {
+    public void testDatamodel04Jexl() throws Exception {
         exec01 = SCXMLTestHelper.getExecutor(datamodel04jexl,
             new JexlContext(), new JexlEvaluator());
         assertNotNull(exec01);

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/HistoryTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/HistoryTest.java?rev=731393&r1=731392&r2=731393&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/HistoryTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/HistoryTest.java
Sun Jan  4 16:19:33 2009
@@ -96,7 +96,7 @@
         runHistoryFlow();
     }
 
-    public void testHistoryDefaults01() {
+    public void testHistoryDefaults01() throws Exception {
         exec = SCXMLTestHelper.getExecutor(defaults01);
         Set currentStates = exec.getCurrentStatus().getStates();
         assertEquals(1, currentStates.size());
@@ -131,7 +131,7 @@
             next()).getId());
     }
 
-    private String pauseAndResume() {
+    private String pauseAndResume() throws Exception {
         Set currentStates = SCXMLTestHelper.fireEvent(exec, "flow.pause");
         assertEquals(1, currentStates.size());
         assertEquals("interrupted", ((State)currentStates.iterator().
@@ -143,7 +143,7 @@
         return ((State)currentStates.iterator().next()).getId();
     }
 
-    private String nextPhase() {
+    private String nextPhase() throws Exception {
         Set currentStates = SCXMLTestHelper.fireEvent(exec, "phase.done");
         assertEquals(1, currentStates.size());
         return ((State)currentStates.iterator().next()).getId();

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/StateTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/StateTest.java?rev=731393&r1=731392&r2=731393&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/StateTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/StateTest.java
Sun Jan  4 16:19:33 2009
@@ -170,7 +170,7 @@
         assertFalse(state.isRegion());
     }
 
-    public void testInitialAttribute() {
+    public void testInitialAttribute() throws Exception {
         SCXML scxml = SCXMLTestHelper.parse(state01);
         assertNotNull(scxml);
         exec = SCXMLTestHelper.getExecutor(scxml);

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/StatelessModelTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/StatelessModelTest.java?rev=731393&r1=731392&r2=731393&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/StatelessModelTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/model/StatelessModelTest.java
Sun Jan  4 16:19:33 2009
@@ -56,7 +56,7 @@
     /**
      * Set up instance variables required by this test case.
      */
-    public void setUp() {
+    public void setUp() throws Exception {
         stateless01jexl = this.getClass().getClassLoader().
             getResource("org/apache/commons/scxml/env/jexl/stateless-01.xml");
         stateless01jsp = this.getClass().getClassLoader().



Mime
View raw message