avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/i18n/test AbstractBundleTestCase.java
Date Wed, 31 Oct 2001 19:14:12 GMT
bloritsch    01/10/31 11:14:12

  Modified:    src/scratchpad/org/apache/avalon/excalibur/i18n/test
                        AbstractBundleTestCase.java
  Log:
  Fix Bundle tests
  
  Revision  Changes    Path
  1.3       +6 -6      jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/i18n/test/AbstractBundleTestCase.java
  
  Index: AbstractBundleTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/i18n/test/AbstractBundleTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractBundleTestCase.java	2001/10/31 19:13:18	1.2
  +++ AbstractBundleTestCase.java	2001/10/31 19:14:12	1.3
  @@ -19,7 +19,7 @@
   
   /**
    * @author <a href="mailto:neeme@one.lv">Neeme Praks</a>
  - * @version $Id: AbstractBundleTestCase.java,v 1.2 2001/10/31 19:13:18 bloritsch Exp $
  + * @version $Id: AbstractBundleTestCase.java,v 1.3 2001/10/31 19:14:12 bloritsch Exp $
    */
   public class AbstractBundleTestCase extends TestCase {
   
  @@ -48,11 +48,11 @@
       }
   
       public void testSubstitute() {
  -        assertEquals(this.bundle.getString("test.plain", variables), "This is a test!",
this.bundle.getString("test.plain", variables));
  -        assertEquals(this.bundle.getString("test.empty", variables), "", this.bundle.getString("test.empty",
variables));
  -        assertEquals(this.bundle.getString("nice", variables), "This is a not so nice test!",
this.bundle.getString("nice", variables));
  -        assertEquals(this.bundle.getString("nice.nice", variables), "This is a not so nice,
not so nice test!", this.bundle.getString("nice.nice", variables));
  -        assertEquals(this.bundle.getString("nice.bad", variables), "This is a not so nice
but not too bad test!", this.bundle.getString("nice.bad", variables));
  +        assertEquals("This is a test!", this.bundle.getString("test.plain", variables));
  +        assertEquals("", this.bundle.getString("test.empty", variables));
  +        assertEquals("This is a not so nice test!", this.bundle.getString("nice", variables));
  +        assertEquals("This is a not so nice, not so nice test!", this.bundle.getString("nice.nice",
variables));
  +        assertEquals("This is a not so nice but not too bad test!", this.bundle.getString("nice.bad",
variables));
       }
   
       private static class TestBundle extends AbstractBundle {
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message