commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r376390 - in /jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml: ./ env/ io/ model/ semantics/
Date Thu, 09 Feb 2006 19:10:43 GMT
Author: rahul
Date: Thu Feb  9 11:10:40 2006
New Revision: 376390

URL: http://svn.apache.org/viewcvs?rev=376390&view=rev
Log:
Code changes to match file renaming in r376384.

Also removed some unnecessary casts.

Modified:
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/AllSCXMLTestSuite.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/BuiltinTest.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCInstanceTest.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLHelperTest.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestSuite.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/StatusTest.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/EnvTestSuite.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/LogUtilsTest.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/SimpleContextTest.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/io/IOTestSuite.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/io/SCXMLSerializerTest.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/ActionTest.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/HistoryTest.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/ModelTestSuite.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/PathTest.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/StateTest.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/TransitionTest.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/semantics/SemanticsTestSuite.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/semantics/TransitionTargetComparatorTest.java

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/AllSCXMLTestSuite.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/AllSCXMLTestSuite.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/AllSCXMLTestSuite.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/AllSCXMLTestSuite.java
Thu Feb  9 11:10:40 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2005 The Apache Software Foundation.
+ * Copyright 2005-2006 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -21,10 +21,14 @@
 import junit.textui.TestRunner;
 
 import org.apache.commons.scxml.env.EnvTestSuite;
-import org.apache.commons.scxml.env.jsp.EnvJspTestSuite;
 import org.apache.commons.scxml.env.faces.EnvFacesTestSuite;
+import org.apache.commons.scxml.env.jexl.EnvJexlTestSuite;
+import org.apache.commons.scxml.env.jsp.EnvJspTestSuite;
+import org.apache.commons.scxml.env.servlet.EnvServletTestSuite;
+import org.apache.commons.scxml.io.IOTestSuite;
 import org.apache.commons.scxml.model.ModelTestSuite;
 import org.apache.commons.scxml.semantics.SemanticsTestSuite;
+import org.apache.commons.scxml.test.TestingTestSuite;
 
 /**
  * Test suite for [SCXML].
@@ -53,12 +57,16 @@
     public static Test suite() {
         TestSuite suite = new TestSuite();
         suite.setName("Commons-SCXML (all) Tests");
-        suite.addTest(SCXMLTestSuite.suite());
-        suite.addTest(EnvTestSuite.suite());
-        suite.addTest(EnvJspTestSuite.suite());
         suite.addTest(EnvFacesTestSuite.suite());
+        suite.addTest(EnvJexlTestSuite.suite());
+        suite.addTest(EnvJspTestSuite.suite());
+        suite.addTest(EnvServletTestSuite.suite());
+        suite.addTest(EnvTestSuite.suite());
+        suite.addTest(IOTestSuite.suite());
         suite.addTest(ModelTestSuite.suite());
+        suite.addTest(SCXMLTestSuite.suite());
         suite.addTest(SemanticsTestSuite.suite());
+        suite.addTest(TestingTestSuite.suite());
         return suite;
     }
 }

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/BuiltinTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/BuiltinTest.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/BuiltinTest.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/BuiltinTest.java
Thu Feb  9 11:10:40 2006
@@ -25,18 +25,18 @@
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
-public class TestBuiltin extends TestCase {
+public class BuiltinTest extends TestCase {
 
-    public TestBuiltin(String testName) {
+    public BuiltinTest(String testName) {
         super(testName);
     }
 
     public static Test suite() {
-        return new TestSuite(TestBuiltin.class);
+        return new TestSuite(BuiltinTest.class);
     }
 
     public static void main(String args[]) {
-        String[] testCaseName = { TestBuiltin.class.getName()};
+        String[] testCaseName = { BuiltinTest.class.getName()};
         junit.textui.TestRunner.main(testCaseName);
     }
     

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCInstanceTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCInstanceTest.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCInstanceTest.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCInstanceTest.java
Thu Feb  9 11:10:40 2006
@@ -29,18 +29,18 @@
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
-public class TestSCInstance extends TestCase {
+public class SCInstanceTest extends TestCase {
 
-    public TestSCInstance(String testName) {
+    public SCInstanceTest(String testName) {
         super(testName);
     }
 
     public static Test suite() {
-        return new TestSuite(TestSCInstance.class);
+        return new TestSuite(SCInstanceTest.class);
     }
 
     public static void main(String args[]) {
-        String[] testCaseName = { TestSCInstance.class.getName()};
+        String[] testCaseName = { SCInstanceTest.class.getName()};
         junit.textui.TestRunner.main(testCaseName);
     }
     
@@ -59,7 +59,7 @@
         context.set("name", "value");
         
         instance.setRootContext(context);
-        assertEquals("value", ((Context)instance.getRootContext()).get("name"));
+        assertEquals("value", instance.getRootContext().get("name"));
     }
     
     public void testGetRootContextEvaluator() {
@@ -79,7 +79,7 @@
         
         instance.setContext(target, context);
         
-        assertEquals("value", ((Context)instance.getContext(target)).get("name"));
+        assertEquals("value", instance.getContext(target).get("name"));
     }
     
     public void testGetContextNullParent() {
@@ -93,8 +93,8 @@
         Evaluator evaluator = new JexlEvaluator();
         instance.setEvaluator(evaluator);
 
-        assertEquals("value", ((Context)instance.getContext(target)).get("name"));
-        assertEquals("value", ((Context)instance.lookupContext(target)).get("name"));
+        assertEquals("value", instance.getContext(target).get("name"));
+        assertEquals("value", instance.lookupContext(target).get("name"));
     }
 
     public void testGetContextParent() {
@@ -113,8 +113,8 @@
         Evaluator evaluator = new JexlEvaluator();
         instance.setEvaluator(evaluator);
 
-        assertEquals("value", ((Context)instance.getContext(target)).get("name"));
-        assertEquals("value", ((Context)instance.lookupContext(target)).get("name"));
+        assertEquals("value", instance.getContext(target).get("name"));
+        assertEquals("value", instance.lookupContext(target).get("name"));
     }
 
     public void testGetLastConfigurationNull() {

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLHelperTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLHelperTest.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLHelperTest.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLHelperTest.java
Thu Feb  9 11:10:40 2006
@@ -28,18 +28,18 @@
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
-public class TestSCXMLHelper extends TestCase {
+public class SCXMLHelperTest extends TestCase {
 
-    public TestSCXMLHelper(String testName) {
+    public SCXMLHelperTest(String testName) {
         super(testName);
     }
 
     public static Test suite() {
-        return new TestSuite(TestSCXMLHelper.class);
+        return new TestSuite(SCXMLHelperTest.class);
     }
 
     public static void main(String args[]) {
-        String[] testCaseName = { TestSCXMLHelper.class.getName()};
+        String[] testCaseName = { SCXMLHelperTest.class.getName()};
         junit.textui.TestRunner.main(testCaseName);
     }
     

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestSuite.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestSuite.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestSuite.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestSuite.java
Thu Feb  9 11:10:40 2006
@@ -46,12 +46,12 @@
     public static Test suite() {
         TestSuite suite = new TestSuite();
         suite.setName("Commons-SCXML Tests");
+        suite.addTest(BuiltinTest.suite());
+        suite.addTest(SCInstanceTest.suite());
         suite.addTest(SCXMLDigesterTest.suite());
         suite.addTest(SCXMLExecutorTest.suite());
-        suite.addTest(TestBuiltin.suite());
-        suite.addTest(TestSCInstance.suite());
-        suite.addTest(TestSCXMLHelper.suite());
-        suite.addTest(TestStatus.suite());
+        suite.addTest(SCXMLHelperTest.suite());
+        suite.addTest(StatusTest.suite());
         suite.addTest(TriggerEventTest.suite());
         return suite;
     }

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/StatusTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/StatusTest.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/StatusTest.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/StatusTest.java
Thu Feb  9 11:10:40 2006
@@ -21,20 +21,20 @@
 
 import org.apache.commons.scxml.model.State;
 
-public class TestStatus extends TestCase {
+public class StatusTest extends TestCase {
 
-    public TestStatus(String name) {
+    public StatusTest(String name) {
         super(name);
     }
 
     public static Test suite() {
-        TestSuite suite = new TestSuite(TestStatus.class);
+        TestSuite suite = new TestSuite(StatusTest.class);
         suite.setName("TestStatus");
         return suite;
     }
 
     public static void main(String args[]) {
-        String[] testCaseName = { TestStatus.class.getName()};
+        String[] testCaseName = { StatusTest.class.getName()};
         junit.textui.TestRunner.main(testCaseName);
     }
 

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/EnvTestSuite.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/EnvTestSuite.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/EnvTestSuite.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/EnvTestSuite.java
Thu Feb  9 11:10:40 2006
@@ -47,8 +47,8 @@
     public static Test suite() {
         TestSuite suite = new TestSuite();
         suite.setName("Commons-SCXML Environments Tests");
-        suite.addTest(TestLogUtils.suite());
-        suite.addTest(TestSimpleContext.suite());
+        suite.addTest(LogUtilsTest.suite());
+        suite.addTest(SimpleContextTest.suite());
         return suite;
     }
 }

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/LogUtilsTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/LogUtilsTest.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/LogUtilsTest.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/LogUtilsTest.java
Thu Feb  9 11:10:40 2006
@@ -23,18 +23,18 @@
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
-public class TestLogUtils extends TestCase {
+public class LogUtilsTest extends TestCase {
 
-    public TestLogUtils(String testName) {
+    public LogUtilsTest(String testName) {
         super(testName);
     }
 
     public static Test suite() {
-        return new TestSuite(TestLogUtils.class);
+        return new TestSuite(LogUtilsTest.class);
     }
 
     public static void main(String args[]) {
-        String[] testCaseName = {TestLogUtils.class.getName()};
+        String[] testCaseName = {LogUtilsTest.class.getName()};
         junit.textui.TestRunner.main(testCaseName);
     }
     

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/SimpleContextTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/SimpleContextTest.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/SimpleContextTest.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/SimpleContextTest.java
Thu Feb  9 11:10:40 2006
@@ -22,18 +22,18 @@
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
-public class TestSimpleContext extends TestCase {
+public class SimpleContextTest extends TestCase {
 
-    public TestSimpleContext(String testName) {
+    public SimpleContextTest(String testName) {
         super(testName);
     }
 
     public static Test suite() {
-        return new TestSuite(TestSimpleContext.class);
+        return new TestSuite(SimpleContextTest.class);
     }
 
     public static void main(String args[]) {
-        String[] testCaseName = { TestSimpleContext.class.getName()};
+        String[] testCaseName = { SimpleContextTest.class.getName()};
         junit.textui.TestRunner.main(testCaseName);
     }
 

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/io/IOTestSuite.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/io/IOTestSuite.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/io/IOTestSuite.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/io/IOTestSuite.java
Thu Feb  9 11:10:40 2006
@@ -47,7 +47,7 @@
     public static Test suite() {
         TestSuite suite = new TestSuite();
         suite.setName("Commons-SCXML IO Tests");
-        suite.addTest(TestSCXMLSerializer.suite());
+        suite.addTest(SCXMLSerializerTest.suite());
         return suite;
     }
 }

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/io/SCXMLSerializerTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/io/SCXMLSerializerTest.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/io/SCXMLSerializerTest.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/io/SCXMLSerializerTest.java
Thu Feb  9 11:10:40 2006
@@ -37,18 +37,18 @@
 import org.apache.commons.scxml.model.TransitionTarget;
 import org.apache.commons.scxml.model.Var;
 
-public class TestSCXMLSerializer extends TestCase {
+public class SCXMLSerializerTest extends TestCase {
 
-    public TestSCXMLSerializer(String testName) {
+    public SCXMLSerializerTest(String testName) {
         super(testName);
     }
 
     public static Test suite() {
-        return new TestSuite(TestSCXMLSerializer.class);
+        return new TestSuite(SCXMLSerializerTest.class);
     }
 
     public static void main(String args[]) {
-        String[] testCaseName = { TestSCXMLSerializer.class.getName()};
+        String[] testCaseName = { SCXMLSerializerTest.class.getName()};
         junit.textui.TestRunner.main(testCaseName);
     }
     

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/ActionTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/ActionTest.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/ActionTest.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/ActionTest.java
Thu Feb  9 11:10:40 2006
@@ -19,18 +19,18 @@
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
-public class TestAction extends TestCase {
+public class ActionTest extends TestCase {
 
-    public TestAction(String testName) {
+    public ActionTest(String testName) {
         super(testName);
     }
 
     public static Test suite() {
-        return new TestSuite(TestAction.class);
+        return new TestSuite(ActionTest.class);
     }
 
     public static void main(String args[]) {
-        String[] testCaseName = { TestAction.class.getName()};
+        String[] testCaseName = { ActionTest.class.getName()};
         junit.textui.TestRunner.main(testCaseName);
     }
     
@@ -106,6 +106,7 @@
             fail("Unknown TransitionTarget subclass:Initial");
         }
         catch( ModelException e ){
+        	//ignore
         }
     }
 }

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/HistoryTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/HistoryTest.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/HistoryTest.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/HistoryTest.java
Thu Feb  9 11:10:40 2006
@@ -19,18 +19,18 @@
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
-public class TestHistory extends TestCase {
+public class HistoryTest extends TestCase {
 
-    public TestHistory(String testName) {
+    public HistoryTest(String testName) {
         super(testName);
     }
 
     public static Test suite() {
-        return new TestSuite(TestHistory.class);
+        return new TestSuite(HistoryTest.class);
     }
 
     public static void main(String args[]) {
-        String[] testCaseName = { TestHistory.class.getName()};
+        String[] testCaseName = { HistoryTest.class.getName()};
         junit.textui.TestRunner.main(testCaseName);
     }
     

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/ModelTestSuite.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/ModelTestSuite.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/ModelTestSuite.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/ModelTestSuite.java
Thu Feb  9 11:10:40 2006
@@ -48,11 +48,11 @@
         TestSuite suite = new TestSuite();
         suite.setName("Commons-SCXML Model Tests");
         suite.addTest(ActionsTest.suite());
-        suite.addTest(TestAction.suite());
-        suite.addTest(TestHistory.suite());
-        suite.addTest(TestPath.suite());
-        suite.addTest(TestState.suite());
-        suite.addTest(TestTransition.suite());
+        suite.addTest(ActionTest.suite());
+        suite.addTest(HistoryTest.suite());
+        suite.addTest(PathTest.suite());
+        suite.addTest(StateTest.suite());
+        suite.addTest(TransitionTest.suite());
         return suite;
     }
 }

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/PathTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/PathTest.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/PathTest.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/PathTest.java
Thu Feb  9 11:10:40 2006
@@ -19,18 +19,18 @@
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
-public class TestPath extends TestCase {
+public class PathTest extends TestCase {
 
-    public TestPath(String testName) {
+    public PathTest(String testName) {
         super(testName);
     }
 
     public static Test suite() {
-        return new TestSuite(TestPath.class);
+        return new TestSuite(PathTest.class);
     }
 
     public static void main(String args[]) {
-        String[] testCaseName = { TestPath.class.getName()};
+        String[] testCaseName = { PathTest.class.getName()};
         junit.textui.TestRunner.main(testCaseName);
     }
     
@@ -138,7 +138,7 @@
 
         Path path = new Path(source, target);
 
-        assertEquals("parentid", ((State)path.getScope()).getId());
+        assertEquals("parentid", path.getScope().getId());
     }
     
     public void testConstructorParentParallel() {
@@ -179,7 +179,7 @@
 
         Path path = new Path(source, target);
 
-        assertEquals("superParent", ((State)path.getScope()).getId());
+        assertEquals("superParent", path.getScope().getId());
     }
     
     public void testGetRegionsExitedNull() {

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/StateTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/StateTest.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/StateTest.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/StateTest.java
Thu Feb  9 11:10:40 2006
@@ -22,18 +22,18 @@
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
-public class TestState extends TestCase {
+public class StateTest extends TestCase {
 
-    public TestState(String testName) {
+    public StateTest(String testName) {
         super(testName);
     }
 
     public static Test suite() {
-        return new TestSuite(TestState.class);
+        return new TestSuite(StateTest.class);
     }
 
     public static void main(String args[]) {
-        String[] testCaseName = { TestState.class.getName()};
+        String[] testCaseName = { StateTest.class.getName()};
         junit.textui.TestRunner.main(testCaseName);
     }
     

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/TransitionTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/TransitionTest.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/TransitionTest.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/model/TransitionTest.java
Thu Feb  9 11:10:40 2006
@@ -19,18 +19,18 @@
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
-public class TestTransition extends TestCase {
+public class TransitionTest extends TestCase {
 
-    public TestTransition(String testName) {
+    public TransitionTest(String testName) {
         super(testName);
     }
 
     public static Test suite() {
-        return new TestSuite(TestTransition.class);
+        return new TestSuite(TransitionTest.class);
     }
 
     public static void main(String args[]) {
-        String[] testCaseName = { TestTransition.class.getName()};
+        String[] testCaseName = { TransitionTest.class.getName()};
         junit.textui.TestRunner.main(testCaseName);
     }
     

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/semantics/SemanticsTestSuite.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/semantics/SemanticsTestSuite.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/semantics/SemanticsTestSuite.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/semantics/SemanticsTestSuite.java
Thu Feb  9 11:10:40 2006
@@ -47,7 +47,7 @@
     public static Test suite() {
         TestSuite suite = new TestSuite();
         suite.setName("Commons-SCXML Semantics Tests");
-        suite.addTest(TestTransitionTargetComparator.suite());
+        suite.addTest(TransitionTargetComparatorTest.suite());
         return suite;
     }
 }

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/semantics/TransitionTargetComparatorTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/semantics/TransitionTargetComparatorTest.java?rev=376390&r1=376389&r2=376390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/semantics/TransitionTargetComparatorTest.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/semantics/TransitionTargetComparatorTest.java
Thu Feb  9 11:10:40 2006
@@ -22,18 +22,18 @@
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
-public class TestTransitionTargetComparator extends TestCase {
+public class TransitionTargetComparatorTest extends TestCase {
 
-    public TestTransitionTargetComparator(String testName) {
+    public TransitionTargetComparatorTest(String testName) {
         super(testName);
     }
 
     public static Test suite() {
-        return new TestSuite(TestTransitionTargetComparator.class);
+        return new TestSuite(TransitionTargetComparatorTest.class);
     }
 
     public static void main(String args[]) {
-        String[] testCaseName = { TestTransitionTargetComparator.class.getName()};
+        String[] testCaseName = { TransitionTargetComparatorTest.class.getName()};
         junit.textui.TestRunner.main(testCaseName);
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message