コード例 #1
0
  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));
  }
コード例 #2
0
  public void testLocaleDoeNotObscureBase() {
    MessageFinder mf = newFinder();

    assertEquals("MessageFinder.only-in-properties", mf.getMessage("only-in-base", Locale.FRENCH));
  }