public void testLocaleOverridesBase() { MessageFinder mf = newFinder(); assertEquals( "MessageFinder_fr.overriden-in-base", mf.getMessage("overridden-in-base", Locale.FRENCH)); // FRANCE is more detailed than FRENCH // Also, there is no MessageFinder_fr_FR.properties file, // and that's ok. assertEquals( "MessageFinder_fr.overriden-in-base", mf.getMessage("overridden-in-base", Locale.FRANCE)); }
public void testLocaleDoeNotObscureBase() { MessageFinder mf = newFinder(); assertEquals("MessageFinder.only-in-properties", mf.getMessage("only-in-base", Locale.FRENCH)); }