[Schmitzm-commits] r1106 - in branches/2.3.KECK: src/skrueger/i8n src_junit/skrueger/i8n

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Oct 14 12:38:56 CEST 2010


Author: alfonx
Date: 2010-10-14 12:38:56 +0200 (Thu, 14 Oct 2010)
New Revision: 1106

Modified:
   branches/2.3.KECK/src/skrueger/i8n/Translation.java
   branches/2.3.KECK/src_junit/skrueger/i8n/I8NUtilTest.java
Log:
tests fixed

Modified: branches/2.3.KECK/src/skrueger/i8n/Translation.java
===================================================================
--- branches/2.3.KECK/src/skrueger/i8n/Translation.java	2010-10-14 10:35:55 UTC (rev 1105)
+++ branches/2.3.KECK/src/skrueger/i8n/Translation.java	2010-10-14 10:38:56 UTC (rev 1106)
@@ -393,7 +393,7 @@
 		PropertyChangeEvent pce = new PropertyChangeEvent(new Translation(
 				new ArrayList<String>(), "fakeSource"),
 				ACTIVELANG_CHANGE_PROPERTY, null, getActiveLang());
-		for (PropertyChangeListener pcl : listenersLocaleChange) {
+		for (PropertyChangeListener pcl : listenersActiveLangChange) {
 			if (pcl != null)
 				pcl.propertyChange(pce);
 		}
@@ -545,3 +545,4 @@
 	}
 
 }
+

Modified: branches/2.3.KECK/src_junit/skrueger/i8n/I8NUtilTest.java
===================================================================
--- branches/2.3.KECK/src_junit/skrueger/i8n/I8NUtilTest.java	2010-10-14 10:35:55 UTC (rev 1105)
+++ branches/2.3.KECK/src_junit/skrueger/i8n/I8NUtilTest.java	2010-10-14 10:38:56 UTC (rev 1106)
@@ -52,11 +52,6 @@
 	}
 
 	@Test
-	public void testGetFirstLocaleForLang() {
-		assertEquals(new Locale("de_DE"), I8NUtil.getFirstLocaleForLang("po"));
-	}
-
-	@Test
 	public void testGetLocalesForLang() {
 		List<Locale> locales = I8NUtil.getLocalesForLang("en");
 
@@ -65,3 +60,4 @@
 	}
 
 }
+



More information about the Schmitzm-commits mailing list