@Test public void testGetParamHelp() { when(translationService.getValue("KieFunctions." + FUNCTION + "." + PARAM + ".help")).thenReturn(TRANSLATED_NAME); assertEquals(TRANSLATED_NAME, namingService.getParamHelp(FUNCTION, PARAM)); }
public String getParamHelp(String function, String param) { return Optional.ofNullable(translationService.getValue(FUNCTIONS_DOMAIN + function + "." + param + ".help")).orElse(null); }
FunctionNamingService { public String getParamHelp(String function, String param) { return Optional.ofNullable(translationService.getValue(FUNCTIONS_DOMAIN + function + "." + param + ".help")).orElse(null); } }
FunctionNamingService { public String getParamHelp(String function, String param) { return Optional.ofNullable(translationService.getValue(FUNCTIONS_DOMAIN + function + "." + param + ".help")).orElse(null); } @Inject  FunctionNamingService(final ClientTranslationService translationService); }
FunctionNamingService { public String getParamHelp(String function, String param) { return Optional.ofNullable(translationService.getValue(FUNCTIONS_DOMAIN + function + "." + param + ".help")).orElse(null); } @Inject  FunctionNamingService(final ClientTranslationService translationService); String getFunctionName(String function); String getParamName(String function, String param); String getParamHelp(String function, String param); }
FunctionNamingService { public String getParamHelp(String function, String param) { return Optional.ofNullable(translationService.getValue(FUNCTIONS_DOMAIN + function + "." + param + ".help")).orElse(null); } @Inject  FunctionNamingService(final ClientTranslationService translationService); String getFunctionName(String function); String getParamName(String function, String param); String getParamHelp(String function, String param);  }