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

Norman Richards norman.richards at jboss.com
Tue Oct 2 14:12:39 EDT 2007


  User: nrichards
  Date: 07/10/02 14:12:39

  Modified:    src/test/misc/org/jboss/seam/test  InterpolatorTest.java
  Log:
  JBSEAM-2024
  
  Revision  Changes    Path
  1.4       +7 -1      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.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- InterpolatorTest.java	12 Jul 2007 12:14:54 -0000	1.3
  +++ InterpolatorTest.java	2 Oct 2007 18:12:39 -0000	1.4
  @@ -13,7 +13,7 @@
       
       static final String CHOICE_EXPR = "There {0,choice,0#are no files|1#is one file|1<are {0,number,integer} files}.";
       @Test
  -    public void testFail() 
  +    public void testInterpolation() 
       {
           Interpolator interpolator = Interpolator.instance();
   
  @@ -35,6 +35,12 @@
           
           // test that a messageformat error doesn't blow up
           Assert.assertEquals("{nosuchmessage}", interpolator.interpolate("{nosuchmessage}"));
  +        
  +        try {
  +            interpolator.interpolate("hello #{", null);
  +        } catch (Throwable t) {
  +            Assert.fail("interpolator raised an exception");
  +        }
       }
   
   }
  
  
  



More information about the jboss-cvs-commits mailing list