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