Пример #1
0
  @Test
  public void findRealPath() {

    String path = ClassPathUtils.getLocalizedPath("/jgnash/resource/account");

    System.out.println(path);

    assertNotNull("failed test", path);
  }
Пример #2
0
  @Test
  public void findFakePath() {

    Locale defaultLocale = Locale.getDefault();

    Locale.setDefault(new Locale("ZZ"));

    String path = ClassPathUtils.getLocalizedPath("/jgnash/resource/account");

    System.out.println(path);

    Locale.setDefault(defaultLocale);

    assertNotNull("failed test", path);
  }