[jboss-cvs] jboss-seam/src/test/unit/org/jboss/seam/test/unit ...
Shane Bryzak
sbryzak at redhat.com
Mon Oct 15 05:09:43 EDT 2007
User: sbryzak2
Date: 07/10/15 05:09:43
Modified: src/test/unit/org/jboss/seam/test/unit
InterpolatorTest.java
Log:
JBSEAM-1812
Revision Changes Path
1.2 +2 -2 jboss-seam/src/test/unit/org/jboss/seam/test/unit/InterpolatorTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: InterpolatorTest.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/test/unit/org/jboss/seam/test/unit/InterpolatorTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- InterpolatorTest.java 8 Oct 2007 18:15:47 -0000 1.1
+++ InterpolatorTest.java 15 Oct 2007 09:09:43 -0000 1.2
@@ -1,5 +1,6 @@
package org.jboss.seam.test.unit;
+import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
@@ -30,8 +31,7 @@
Date date = new Date(0);
- Assert.assertEquals(new SimpleDateFormat("M/d/y").format(date), interpolator.interpolate("{0,date,short}", date));
-
+ Assert.assertEquals(DateFormat.getDateInstance(DateFormat.SHORT).format(date), interpolator.interpolate("{0,date,short}", date));
// test that a messageformat error doesn't blow up
Assert.assertEquals("{nosuchmessage}", interpolator.interpolate("{nosuchmessage}"));
More information about the jboss-cvs-commits
mailing list