@Test(expected = IllegalArgumentException.class) public void evaluateStringIsNotMissing() { Object value = "43"; KiePMMLSimplePredicate kiePMMLSimplePredicate = getKiePMMLSimplePredicate(OPERATOR.IS_NOT_MISSING, value); Map<String, Object> inputData = new HashMap<>(); inputData.put(SIMPLE_PREDICATE_NAME, value); kiePMMLSimplePredicate.evaluate(inputData); }
@Override public boolean evaluate(Map<String, Object> values) { boolean toReturn = false; if (values.containsKey(name)) { logger.debug("found matching parameter, evaluating... "); toReturn = evaluation(values.get(name)); } return toReturn; }
KiePMMLSimplePredicate extends KiePMMLPredicate { @Override public boolean evaluate(Map<String, Object> values) { boolean toReturn = false; if (values.containsKey(name)) { logger.debug("found matching parameter, evaluating... "); toReturn = evaluation(values.get(name)); } return toReturn; } }
KiePMMLSimplePredicate extends KiePMMLPredicate { @Override public boolean evaluate(Map<String, Object> values) { boolean toReturn = false; if (values.containsKey(name)) { logger.debug("found matching parameter, evaluating... "); toReturn = evaluation(values.get(name)); } return toReturn; } protected  KiePMMLSimplePredicate(final String name, final List<KiePMMLExtension> extensions, final OPERATOR operator); }
KiePMMLSimplePredicate extends KiePMMLPredicate { @Override public boolean evaluate(Map<String, Object> values) { boolean toReturn = false; if (values.containsKey(name)) { logger.debug("found matching parameter, evaluating... "); toReturn = evaluation(values.get(name)); } return toReturn; } protected  KiePMMLSimplePredicate(final String name, final List<KiePMMLExtension> extensions, final OPERATOR operator); static Builder builder(String name, List<KiePMMLExtension> extensions, OPERATOR operator); @Override boolean evaluate(Map<String, Object> values); @Override String getName(); OPERATOR getOperator(); Object getValue(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
KiePMMLSimplePredicate extends KiePMMLPredicate { @Override public boolean evaluate(Map<String, Object> values) { boolean toReturn = false; if (values.containsKey(name)) { logger.debug("found matching parameter, evaluating... "); toReturn = evaluation(values.get(name)); } return toReturn; } protected  KiePMMLSimplePredicate(final String name, final List<KiePMMLExtension> extensions, final OPERATOR operator); static Builder builder(String name, List<KiePMMLExtension> extensions, OPERATOR operator); @Override boolean evaluate(Map<String, Object> values); @Override String getName(); OPERATOR getOperator(); Object getValue(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }