public void testGetLanguageName() { try { Language language = store.getLanguage("en", "en"); assertEquals("English", language.getName()); } catch (Exception e) { e.printStackTrace(); fail(e.getMessage()); } }
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()); } }