use of org.kie.kogito.explainability.local.counterfactual.entities.BooleanEntity in project kogito-apps by kiegroup.
the class CounterfactualEntityFactoryTest method testBooleanFactory.
@Test
void testBooleanFactory() {
final boolean value = false;
final Feature feature = FeatureFactory.newBooleanFeature("bool-feature", value, EmptyFeatureDomain.create());
final CounterfactualEntity counterfactualEntity = CounterfactualEntityFactory.from(feature);
assertTrue(counterfactualEntity instanceof BooleanEntity);
assertEquals(value, counterfactualEntity.asFeature().getValue().getUnderlyingObject());
}
Aggregations