示例#1
0
  public void testGetLanguageName() {

    try {
      Language language = store.getLanguage("en", "en");
      assertEquals("English", language.getName());
    } catch (Exception e) {
      e.printStackTrace();
      fail(e.getMessage());
    }
  }
示例#2
0
  public void testLanguagePropertyAccessors() {

    try {
      List<Language> fragments = store.<Language>getXMLResources("Language");
      Language fragment = fragments.get(0);
      assertEquals("Afar", fragment.getName());
      assertEquals("aa", fragment.getCode());
      assertEquals("en", fragment.getEncoding());
    } catch (Exception e) {
      e.printStackTrace();
      fail(e.getMessage());
    }
  }