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