[jboss-cvs] jboss-seam/src/test/misc/org/jboss/seam/test ...
Norman Richards
norman.richards at jboss.com
Wed Feb 7 12:32:36 EST 2007
User: nrichards
Date: 07/02/07 12:32:36
Modified: src/test/misc/org/jboss/seam/test InterpolatorTest.java
Log:
interpolator shouldn't blow up on a bad message
Revision Changes Path
1.2 +3 -0 jboss-seam/src/test/misc/org/jboss/seam/test/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/misc/org/jboss/seam/test/InterpolatorTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- InterpolatorTest.java 1 Feb 2007 19:58:07 -0000 1.1
+++ InterpolatorTest.java 7 Feb 2007 17:32:36 -0000 1.2
@@ -29,6 +29,9 @@
Assert.assertEquals("12/31/69", interpolator.interpolate("{0,date,short}", new Date(0)));
+
+ // test that a messageformat error doesn't blow up
+ Assert.assertEquals("{nosuchmessage}", interpolator.interpolate("{nosuchmessage}"));
}
}
More information about the jboss-cvs-commits
mailing list