@Test public void shouldReturnNullWhenGetCustomTranslationIfCustomTranslationIsNull() { String key = "key"; Locale locale = new Locale("pl"); String[] args = null; given(customTranslationResolver.getCustomTranslation(key, locale, args)).willReturn(null); String result = translationServiceOverrideUtil.getCustomTranslation(key, locale, args); assertEquals(null, result); }
public String getCustomTranslation(final String key, final Locale locale, final String[] args) { return customTranslationResolver.getCustomTranslation(key, locale, args); }
TranslationServiceOverrideUtil { public String getCustomTranslation(final String key, final Locale locale, final String[] args) { return customTranslationResolver.getCustomTranslation(key, locale, args); } }
TranslationServiceOverrideUtil { public String getCustomTranslation(final String key, final Locale locale, final String[] args) { return customTranslationResolver.getCustomTranslation(key, locale, args); }  }
TranslationServiceOverrideUtil { public String getCustomTranslation(final String key, final Locale locale, final String[] args) { return customTranslationResolver.getCustomTranslation(key, locale, args); }  boolean shouldOverrideTranslation(final String key, final Locale locale); String getCustomTranslation(final String key, final Locale locale, final String[] args); }
TranslationServiceOverrideUtil { public String getCustomTranslation(final String key, final Locale locale, final String[] args) { return customTranslationResolver.getCustomTranslation(key, locale, args); }  boolean shouldOverrideTranslation(final String key, final Locale locale); String getCustomTranslation(final String key, final Locale locale, final String[] args);  }