@Test public void testGetConceptLabelWithNoDefaultLanguage() { Language lang = new Language(); lang.setId("rus"); String actualLabel = LabelUtil.getLocalizedLabel("russian lexical value", lang, "fra"); Assert.assertEquals("russian lexical value@rus", actualLabel); }
public static String getLocalizedLabel(String lexicalValue, Language language, String defaultLang) { String resultLabel = lexicalValue; if (!defaultLang.equals(language.getId())) { resultLabel += LANGUAGE_SEPARATOR + language.getId(); } return resultLabel; }
LabelUtil { public static String getLocalizedLabel(String lexicalValue, Language language, String defaultLang) { String resultLabel = lexicalValue; if (!defaultLang.equals(language.getId())) { resultLabel += LANGUAGE_SEPARATOR + language.getId(); } return resultLabel; } }
LabelUtil { public static String getLocalizedLabel(String lexicalValue, Language language, String defaultLang) { String resultLabel = lexicalValue; if (!defaultLang.equals(language.getId())) { resultLabel += LANGUAGE_SEPARATOR + language.getId(); } return resultLabel; } private  LabelUtil(); }
LabelUtil { public static String getLocalizedLabel(String lexicalValue, Language language, String defaultLang) { String resultLabel = lexicalValue; if (!defaultLang.equals(language.getId())) { resultLabel += LANGUAGE_SEPARATOR + language.getId(); } return resultLabel; } private  LabelUtil(); static String getLocalizedLabel(String lexicalValue,
	                                       Language language, String defaultLang); static String getResourceLabel(String key); static String getDefaultLabel(String key); }
LabelUtil { public static String getLocalizedLabel(String lexicalValue, Language language, String defaultLang) { String resultLabel = lexicalValue; if (!defaultLang.equals(language.getId())) { resultLabel += LANGUAGE_SEPARATOR + language.getId(); } return resultLabel; } private  LabelUtil(); static String getLocalizedLabel(String lexicalValue,
	                                       Language language, String defaultLang); static String getResourceLabel(String key); static String getDefaultLabel(String key);  }