struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r407682 - /struts/action2/trunk/core/src/test/java/org/apache/struts/action2/views/jsp/ui/SubmitTest.java
Date Fri, 19 May 2006 01:37:27 GMT
Author: tmjee
Date: Thu May 18 18:37:26 2006
New Revision: 407682

URL: http://svn.apache.org/viewvc?rev=407682&view=rev
Log:
- fixed failling test (due to added missing id attribute)

Modified:
    struts/action2/trunk/core/src/test/java/org/apache/struts/action2/views/jsp/ui/SubmitTest.java

Modified: struts/action2/trunk/core/src/test/java/org/apache/struts/action2/views/jsp/ui/SubmitTest.java
URL: http://svn.apache.org/viewvc/struts/action2/trunk/core/src/test/java/org/apache/struts/action2/views/jsp/ui/SubmitTest.java?rev=407682&r1=407681&r2=407682&view=diff
==============================================================================
--- struts/action2/trunk/core/src/test/java/org/apache/struts/action2/views/jsp/ui/SubmitTest.java
(original)
+++ struts/action2/trunk/core/src/test/java/org/apache/struts/action2/views/jsp/ui/SubmitTest.java
Thu May 18 18:37:26 2006
@@ -148,7 +148,7 @@
         tag.doStartTag();
         tag.doEndTag();
 
-        assertEquals("<button type=\"submit\" name=\"action:manager!update\" value=\"Submit\">mylabel</button>",
writer.toString().trim());
+        assertEquals("<button type=\"submit\" id=\"myname\" name=\"action:manager!update\"
value=\"Submit\">mylabel</button>", writer.toString().trim());
     }
 
     public void testSimpleThemeImageUsingActionOnly() throws Exception {
@@ -168,7 +168,7 @@
         tag.doStartTag();
         tag.doEndTag();
 
-        assertEquals("<button type=\"submit\" name=\"action:manager\" value=\"Submit\">mylabel</button>",
writer.toString().trim());
+        assertEquals("<button type=\"submit\" id=\"myname\" name=\"action:manager\" value=\"Submit\">mylabel</button>",
writer.toString().trim());
     }
 
     public void testSimpleThemeImageUsingMethodOnly() throws Exception {
@@ -188,7 +188,7 @@
         tag.doStartTag();
         tag.doEndTag();
 
-        assertEquals("<button type=\"submit\" name=\"method:update\" value=\"Submit\">mylabel</button>",
writer.toString().trim());
+        assertEquals("<button type=\"submit\" id=\"myname\" name=\"method:update\" value=\"Submit\">mylabel</button>",
writer.toString().trim());
     }
 
     public void testSimpleThemeInput() throws Exception {
@@ -207,7 +207,7 @@
         tag.doStartTag();
         tag.doEndTag();
 
-        assertEquals("<input type=\"submit\" name=\"myname\" value=\"Submit\"/>", writer.toString().trim());
+        assertEquals("<input type=\"submit\" id=\"myname\" name=\"myname\" value=\"Submit\"/>",
writer.toString().trim());
     }
 
     /**



Mime
View raw message