[jboss-cvs] jboss-seam/src/test/misc/org/jboss/seam/test ...

Peter Muir peter at bleepbleep.org.uk
Thu Jul 12 08:14:54 EDT 2007


  User: pmuir   
  Date: 07/07/12 08:14:54

  Modified:    src/test/misc/org/jboss/seam/test  InterpolatorTest.java
  Log:
  Make this work everywhere
  
  Revision  Changes    Path
  1.3       +5 -2      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.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- InterpolatorTest.java	7 Feb 2007 17:32:36 -0000	1.2
  +++ InterpolatorTest.java	12 Jul 2007 12:14:54 -0000	1.3
  @@ -1,5 +1,6 @@
   package org.jboss.seam.test;
   
  +import java.text.SimpleDateFormat;
   import java.util.Date;
   
   import org.jboss.seam.core.Interpolator;
  @@ -27,7 +28,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);
  +                
  +        Assert.assertEquals(new SimpleDateFormat("M/d/y").format(date), interpolator.interpolate("{0,date,short}", date));
    
           
           // test that a messageformat error doesn't blow up
  
  
  



More information about the jboss-cvs-commits mailing list