@Test(expected = KiePMMLException.class) public void getDefineFunctionsMethodMapUnsupportedExpression() { List<DefineFunction> defineFunctions = unsupportedExpressionSupplier.stream().map(defineFunctionCreator).collect(Collectors.toList()); DefineFunctionUtils.getDefineFunctionsMethodMap(defineFunctions); }
static Map<String, MethodDeclaration> getDefineFunctionsMethodMap(final List<DefineFunction> defineFunctions) { Map<String, MethodDeclaration> toReturn = new HashMap<>(); defineFunctions.forEach(defineFunction -> toReturn.put(defineFunction.getName(), getDefineFunctionMethodDeclaration(defineFunction))); return toReturn; }
DefineFunctionUtils { static Map<String, MethodDeclaration> getDefineFunctionsMethodMap(final List<DefineFunction> defineFunctions) { Map<String, MethodDeclaration> toReturn = new HashMap<>(); defineFunctions.forEach(defineFunction -> toReturn.put(defineFunction.getName(), getDefineFunctionMethodDeclaration(defineFunction))); return toReturn; } }
DefineFunctionUtils { static Map<String, MethodDeclaration> getDefineFunctionsMethodMap(final List<DefineFunction> defineFunctions) { Map<String, MethodDeclaration> toReturn = new HashMap<>(); defineFunctions.forEach(defineFunction -> toReturn.put(defineFunction.getName(), getDefineFunctionMethodDeclaration(defineFunction))); return toReturn; } private  DefineFunctionUtils(); }
DefineFunctionUtils { static Map<String, MethodDeclaration> getDefineFunctionsMethodMap(final List<DefineFunction> defineFunctions) { Map<String, MethodDeclaration> toReturn = new HashMap<>(); defineFunctions.forEach(defineFunction -> toReturn.put(defineFunction.getName(), getDefineFunctionMethodDeclaration(defineFunction))); return toReturn; } private  DefineFunctionUtils();  }
DefineFunctionUtils { static Map<String, MethodDeclaration> getDefineFunctionsMethodMap(final List<DefineFunction> defineFunctions) { Map<String, MethodDeclaration> toReturn = new HashMap<>(); defineFunctions.forEach(defineFunction -> toReturn.put(defineFunction.getName(), getDefineFunctionMethodDeclaration(defineFunction))); return toReturn; } private  DefineFunctionUtils();   }