return new MessageFinderImpl(r);
}
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));
}