use of org.kie.pmml.commons.model.predicates.KiePMMLSimplePredicate in project drools by kiegroup.
the class KiePMMLSimplePredicateInstanceFactoryTest method getKiePMMLSimplePredicate.
@Test
public void getKiePMMLSimplePredicate() {
List<Field<?>> fields = IntStream.range(0, 3).mapToObj(i -> getRandomDataField()).collect(Collectors.toList());
final SimplePredicate toConvert = getRandomSimplePredicate((DataField) fields.get(0));
final KiePMMLSimplePredicate retrieved = KiePMMLSimplePredicateInstanceFactory.getKiePMMLSimplePredicate(toConvert, fields);
commonVerifyKiePMMLSimplePredicate(retrieved, toConvert, (DataField) fields.get(0));
}
Aggregations