click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r726203 - /incubator/click/trunk/click/extras/test/net/sf/click/extras/control/DateFieldTest.java
Date Sat, 13 Dec 2008 13:30:07 GMT
Author: sabob
Date: Sat Dec 13 05:30:07 2008
New Revision: 726203

URL: http://svn.apache.org/viewvc?rev=726203&view=rev
Log:
Refactored DateField test

Modified:
    incubator/click/trunk/click/extras/test/net/sf/click/extras/control/DateFieldTest.java

Modified: incubator/click/trunk/click/extras/test/net/sf/click/extras/control/DateFieldTest.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/test/net/sf/click/extras/control/DateFieldTest.java?rev=726203&r1=726202&r2=726203&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/test/net/sf/click/extras/control/DateFieldTest.java
(original)
+++ incubator/click/trunk/click/extras/test/net/sf/click/extras/control/DateFieldTest.java
Sat Dec 13 05:30:07 2008
@@ -28,37 +28,6 @@
  */
 public class DateFieldTest extends TestCase {
 
-    public void testFormatPattern() throws Exception {
-        DateField dateField = new DateField("Delivery date");
-        assertEquals("dd MMM yyyy", dateField.getFormatPattern());
-        assertEquals("%d %b %Y", dateField.getCalendarPattern());
-        
-        dateField = new DateField("Delivery date");
-        dateField.setFormatPattern(" dd MMM yyyy ");
-        assertEquals(" dd MMM yyyy ", dateField.getFormatPattern());
-        assertEquals(" %d %b %Y ", dateField.getCalendarPattern());        
-
-        dateField = new DateField("Delivery date");
-        dateField.setFormatPattern("dd/MMM/yyyy");
-        assertEquals("dd/MMM/yyyy", dateField.getFormatPattern());
-        assertEquals("%d/%b/%Y", dateField.getCalendarPattern()); 
-        
-        dateField = new DateField("Delivery date");
-        dateField.setFormatPattern("dd.MMM.yyyy");
-        assertEquals("dd.MMM.yyyy", dateField.getFormatPattern());
-        assertEquals("%d.%b.%Y", dateField.getCalendarPattern());
-        
-        dateField = new DateField("Delivery date");
-        dateField.setFormatPattern("dd.MM.yy");
-        assertEquals("dd.MM.yy", dateField.getFormatPattern());
-        assertEquals("%d.%m.%y", dateField.getCalendarPattern());
-        
-        dateField = new DateField("Delivery date");
-        dateField.setFormatPattern("d/M/yy");
-        assertEquals("d/M/yy", dateField.getFormatPattern());
-        assertEquals("%e/%m/%y", dateField.getCalendarPattern());
-    }
-    
     public void testNullParameter() {
         MockContext mockContext = MockContext.initContext();
         MockRequest request = mockContext.getMockRequest();



Mime
View raw message