@Test public void testGetWhenKeyIsNull() { assertNull(this.tool.get(null)); }
public String get(String key) { String translation; if (this.localization != null) { translation = get(key, ArrayUtils.EMPTY_OBJECT_ARRAY); } else { translation = getTranslation(key); if (translation == null) { try { translation = this.bundle.getString(key); } catch (Exception e) { translation = key; } } } return translation; }
XWikiMessageTool { public String get(String key) { String translation; if (this.localization != null) { translation = get(key, ArrayUtils.EMPTY_OBJECT_ARRAY); } else { translation = getTranslation(key); if (translation == null) { try { translation = this.bundle.getString(key); } catch (Exception e) { translation = key; } } } return translation; } }
XWikiMessageTool { public String get(String key) { String translation; if (this.localization != null) { translation = get(key, ArrayUtils.EMPTY_OBJECT_ARRAY); } else { translation = getTranslation(key); if (translation == null) { try { translation = this.bundle.getString(key); } catch (Exception e) { translation = key; } } } return translation; } XWikiMessageTool(ContextualLocalizationManager localization);  XWikiMessageTool(ResourceBundle bundle, XWikiContext context); }
XWikiMessageTool { public String get(String key) { String translation; if (this.localization != null) { translation = get(key, ArrayUtils.EMPTY_OBJECT_ARRAY); } else { translation = getTranslation(key); if (translation == null) { try { translation = this.bundle.getString(key); } catch (Exception e) { translation = key; } } } return translation; } XWikiMessageTool(ContextualLocalizationManager localization);  XWikiMessageTool(ResourceBundle bundle, XWikiContext context); String get(String key); String get(String key, List<?> params); String get(String key, Object... params); List<XWikiDocument> getDocumentBundles(); XWikiDocument getDocumentBundle(String documentName); List<XWikiDocument> getDocumentBundles(String documentName, String defaultLanguage); Properties getDocumentBundleProperties(XWikiDocument docBundle); }
XWikiMessageTool { public String get(String key) { String translation; if (this.localization != null) { translation = get(key, ArrayUtils.EMPTY_OBJECT_ARRAY); } else { translation = getTranslation(key); if (translation == null) { try { translation = this.bundle.getString(key); } catch (Exception e) { translation = key; } } } return translation; } XWikiMessageTool(ContextualLocalizationManager localization);  XWikiMessageTool(ResourceBundle bundle, XWikiContext context); String get(String key); String get(String key, List<?> params); String get(String key, Object... params); List<XWikiDocument> getDocumentBundles(); XWikiDocument getDocumentBundle(String documentName); List<XWikiDocument> getDocumentBundles(String documentName, String defaultLanguage); Properties getDocumentBundleProperties(XWikiDocument docBundle);  }