use of org.kie.kogito.explainability.local.counterfactual.entities.fixed.FixedIntegerEntity in project kogito-apps by kiegroup.
the class CounterfactualEntityFactoryTest method testFixedIntegerFactory.
@Test
void testFixedIntegerFactory() {
final int value = 5;
final Feature feature = FeatureFactory.newNumericalFeature("int-feature", value);
final CounterfactualEntity counterfactualEntity = CounterfactualEntityFactory.from(feature);
assertTrue(counterfactualEntity instanceof FixedIntegerEntity);
assertEquals(value, counterfactualEntity.asFeature().getValue().asNumber());
}
Aggregations