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