You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by de...@apache.org on 2007/08/23 19:13:20 UTC

svn commit: r569076 - /commons/sandbox/i18n/trunk/src/test/org/apache/commons/i18n/ResourceBundleMessageProviderTest.java

Author: dennisl
Date: Thu Aug 23 10:13:20 2007
New Revision: 569076

URL: http://svn.apache.org/viewvc?rev=569076&view=rev
Log:
Fix tests that are failing due to changes made in revision 533694.

Modified:
    commons/sandbox/i18n/trunk/src/test/org/apache/commons/i18n/ResourceBundleMessageProviderTest.java

Modified: commons/sandbox/i18n/trunk/src/test/org/apache/commons/i18n/ResourceBundleMessageProviderTest.java
URL: http://svn.apache.org/viewvc/commons/sandbox/i18n/trunk/src/test/org/apache/commons/i18n/ResourceBundleMessageProviderTest.java?rev=569076&r1=569075&r2=569076&view=diff
==============================================================================
--- commons/sandbox/i18n/trunk/src/test/org/apache/commons/i18n/ResourceBundleMessageProviderTest.java (original)
+++ commons/sandbox/i18n/trunk/src/test/org/apache/commons/i18n/ResourceBundleMessageProviderTest.java Thu Aug 23 10:13:20 2007
@@ -89,19 +89,19 @@
         Map usEntries = new ResourceBundleMessageProvider("messageBundle").getEntries("helloWorld", Locale.US);
         assertEquals("Default locale, no of entries", 3, usEntries.size());
         assertEquals("Default locale, titel", "Hello World", usEntries.get("title"));
-        assertEquals("Default locale, text", "I wish you a merry christmas!", usEntries.get("text"));
+        assertEquals("Default locale, text", "Hello World, we are in {0}.", usEntries.get("text"));
         assertEquals("This entry is not translated to any other languages", usEntries.get("notTranslated"));
 
         Map germanEntries = new ResourceBundleMessageProvider("messageBundle").getEntries("helloWorld", Locale.GERMAN);
         assertEquals("No of entries", 3, germanEntries.size());
         assertEquals("Hallo Welt", germanEntries.get("title"));
-        assertEquals("Ich wünsche Dir alles Gute und ein frohes Fest!", germanEntries.get("text"));
+        assertEquals("Hallo Welt, wir sind in {0}.", germanEntries.get("text"));
         assertEquals("This entry is not translated to any other languages", germanEntries.get("notTranslated"));
 
         Map frenchEntries = new ResourceBundleMessageProvider("messageBundle").getEntries("helloWorld", Locale.FRENCH);
         assertEquals("Fallback locale, no of entries", 3, frenchEntries.size());
         assertEquals("Fallback locale, titel", "Hello World", frenchEntries.get("title"));
-        assertEquals("Fallback locale, text", "I wish you a merry christmas!", frenchEntries.get("text"));
+        assertEquals("Fallback locale, text", "Hello World, we are in {0}.", frenchEntries.get("text"));
         assertEquals("This entry is not translated to any other languages", frenchEntries.get("notTranslated"));
 
         try {