use of org.kie.pmml.commons.model.predicates.KiePMMLCompoundPredicate in project drools by kiegroup.
the class KiePMMLCompoundPredicateInstanceFactoryTest method getKiePMMLCompoundPredicate.
@Test
public void getKiePMMLCompoundPredicate() {
List<Field<?>> fields = IntStream.range(0, 3).mapToObj(i -> getRandomDataField()).collect(Collectors.toList());
final CompoundPredicate toConvert = getRandomCompoundPredicate(fields);
final KiePMMLCompoundPredicate retrieved = KiePMMLCompoundPredicateInstanceFactory.getKiePMMLCompoundPredicate(toConvert, fields);
commonVerifyKKiePMMLCompoundPredicate(retrieved, toConvert);
}
Aggregations