Esempio n. 1
0
 /** Test methods i18nManager.getAnnotation() */
 @Test
 public void testGetAnnotation() {
   // existing bundle prios
   Locale testLocale = i18nMgr.getLocaleOrDefault("de");
   List<I18nItem> items = i18nMgr.findExistingI18nItems(testLocale, bundleName, false);
   for (I18nItem item : items) {
     String annotation = i18nMgr.getAnnotation(item);
     if (item.getKey().equals("no.need.to.translate.this")) {
       assertEquals("this is an annotation", annotation);
     } else {
       assertNull(annotation);
     }
   }
 }