@Test public void shouldReturnTrueWhenIsCustomTranlationActive() { String key = "key"; Locale locale = new Locale("pl"); given(customTranslationCacheService.isCustomTranslationActive(key, locale.getLanguage())).willReturn(true); boolean result = customTranslationResolver.isCustomTranslationActive(key, locale); assertTrue(result); }
@Override public boolean isCustomTranslationActive(final String key, final Locale locale) { return customTranslationCacheService.isCustomTranslationActive(key, locale.getLanguage()); }
CustomTranslationResolverImpl implements CustomTranslationResolver { @Override public boolean isCustomTranslationActive(final String key, final Locale locale) { return customTranslationCacheService.isCustomTranslationActive(key, locale.getLanguage()); } }
CustomTranslationResolverImpl implements CustomTranslationResolver { @Override public boolean isCustomTranslationActive(final String key, final Locale locale) { return customTranslationCacheService.isCustomTranslationActive(key, locale.getLanguage()); }  }
CustomTranslationResolverImpl implements CustomTranslationResolver { @Override public boolean isCustomTranslationActive(final String key, final Locale locale) { return customTranslationCacheService.isCustomTranslationActive(key, locale.getLanguage()); }  @Override boolean isCustomTranslationActive(final String key, final Locale locale); @Override String getCustomTranslation(final String key, final Locale locale, final String[] args); }
CustomTranslationResolverImpl implements CustomTranslationResolver { @Override public boolean isCustomTranslationActive(final String key, final Locale locale) { return customTranslationCacheService.isCustomTranslationActive(key, locale.getLanguage()); }  @Override boolean isCustomTranslationActive(final String key, final Locale locale); @Override String getCustomTranslation(final String key, final Locale locale, final String[] args);  }