[seam-commits] Seam SVN: r9000 - branches/enterprise/JBPAPP_4_2_CP01/src/test/misc/org/jboss/seam/test.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Sep 16 05:34:31 EDT 2008


Author: manaRH
Date: 2008-09-16 05:34:31 -0400 (Tue, 16 Sep 2008)
New Revision: 9000

Modified:
   branches/enterprise/JBPAPP_4_2_CP01/src/test/misc/org/jboss/seam/test/InterpolatorTest.java
Log:
JBPAPP-1185

Modified: branches/enterprise/JBPAPP_4_2_CP01/src/test/misc/org/jboss/seam/test/InterpolatorTest.java
===================================================================
--- branches/enterprise/JBPAPP_4_2_CP01/src/test/misc/org/jboss/seam/test/InterpolatorTest.java	2008-09-16 03:25:29 UTC (rev 8999)
+++ branches/enterprise/JBPAPP_4_2_CP01/src/test/misc/org/jboss/seam/test/InterpolatorTest.java	2008-09-16 09:34:31 UTC (rev 9000)
@@ -1,6 +1,8 @@
 package org.jboss.seam.test;
 
+import java.text.DateFormat;
 import java.util.Date;
+import java.util.Locale;
 
 import org.jboss.seam.core.Interpolator;
 import org.testng.Assert;
@@ -27,7 +29,9 @@
         Assert.assertEquals("There is one file.", interpolator.interpolate(CHOICE_EXPR, 1));
         Assert.assertEquals("There are 2 files.", interpolator.interpolate(CHOICE_EXPR, 2));
                    
-        Assert.assertEquals("12/31/69", interpolator.interpolate("{0,date,short}", new Date(0)));
+        Date date = new Date(0);
+        DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.US);
+        Assert.assertEquals(df.format(date), interpolator.interpolate("{0,date,short}", date));
  
         
         // test that a messageformat error doesn't blow up




More information about the seam-commits mailing list