commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r610582 - /commons/proper/scxml/branches/J5/src/test/java/org/apache/commons/scxml/io/SCXMLSerializerTest.java
Date Wed, 09 Jan 2008 21:43:22 GMT
Author: rahul
Date: Wed Jan  9 13:43:15 2008
New Revision: 610582

URL: http://svn.apache.org/viewvc?rev=610582&view=rev
Log:
Improve type safety in tests.

Modified:
    commons/proper/scxml/branches/J5/src/test/java/org/apache/commons/scxml/io/SCXMLSerializerTest.java

Modified: commons/proper/scxml/branches/J5/src/test/java/org/apache/commons/scxml/io/SCXMLSerializerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J5/src/test/java/org/apache/commons/scxml/io/SCXMLSerializerTest.java?rev=610582&r1=610581&r2=610582&view=diff
==============================================================================
--- commons/proper/scxml/branches/J5/src/test/java/org/apache/commons/scxml/io/SCXMLSerializerTest.java
(original)
+++ commons/proper/scxml/branches/J5/src/test/java/org/apache/commons/scxml/io/SCXMLSerializerTest.java
Wed Jan  9 13:43:15 2008
@@ -23,6 +23,7 @@
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
+import org.apache.commons.scxml.model.Action;
 import org.apache.commons.scxml.model.Assign;
 import org.apache.commons.scxml.model.Cancel;
 import org.apache.commons.scxml.model.Else;
@@ -106,7 +107,7 @@
         var.setName("newName");
         var.setExpr("newExpression");
         
-        List values = new ArrayList();
+        List<Action> values = new ArrayList<Action>();
         values.add(var);
         
         String actualValue = " <var name=\"newName\" expr=\"newExpression\"/>\n";
@@ -123,7 +124,7 @@
         assign.setName("newName");
         assign.setExpr("newExpression");
         
-        List values = new ArrayList();
+        List<Action> values = new ArrayList<Action>();
         values.add(assign);
         
         String actualValue = " <assign name=\"newName\" expr=\"newExpression\"/>\n";
@@ -139,7 +140,7 @@
         Cancel cancel = new Cancel();
         cancel.setSendid("1");
         
-        List values = new ArrayList();
+        List<Action> values = new ArrayList<Action>();
         values.add(cancel);
         
         String actualValue = " <cancel sendid=\"1\"/>\n";
@@ -155,7 +156,7 @@
         Log log = new Log();
         log.setExpr("newExpression");
         
-        List values = new ArrayList();
+        List<Action> values = new ArrayList<Action>();
         values.add(log);
         
         String actualValue = " <log expr=\"newExpression\"/>\n";
@@ -172,7 +173,7 @@
         exit.setExpr("newExpression");
         exit.setNamelist("names");
         
-        List values = new ArrayList();
+        List<Action> values = new ArrayList<Action>();
         values.add(exit);
         
         String actualValue = " <exit expr=\"newExpression\" namelist=\"names\"/>\n";
@@ -187,7 +188,7 @@
     public void testSerializeActionsElse() {
         Else elseValue = new Else();
         
-        List values = new ArrayList();
+        List<Action> values = new ArrayList<Action>();
         values.add(elseValue);
         
         String actualValue = " <else/>\n";
@@ -203,7 +204,7 @@
         ElseIf elseIf = new ElseIf();
         elseIf.setCond("newCondition");
         
-        List values = new ArrayList();
+        List<Action> values = new ArrayList<Action>();
         values.add(elseIf);
         
         String actualValue = " <elseif cond=\"newCondition\" />\n";
@@ -219,7 +220,7 @@
         If ifValue = new If();
         ifValue.setCond("newCondition");
         
-        List values = new ArrayList();
+        List<Action> values = new ArrayList<Action>();
         values.add(ifValue);
         
         String actualValue = " <if cond=\"newCondition\">\n </if>\n";



Mime
View raw message