commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r569076 - /commons/sandbox/i18n/trunk/src/test/org/apache/commons/i18n/ResourceBundleMessageProviderTest.java
Date Thu, 23 Aug 2007 17:13:20 GMT
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 {



Mime
View raw message