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