use of org.drools.core.spi.BetaNodeFieldConstraint in project drools by kiegroup.
the class DoubleBetaConstraintsTest method testOneIndexed.
@Test
public void testOneIndexed() {
BetaNodeFieldConstraint constraint0 = getConstraint("cheeseType0", Operator.EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint constraint1 = getConstraint("cheeseType1", Operator.NOT_EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint[] constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1 };
checkBetaConstraints(constraints, DoubleBetaConstraints.class);
constraint0 = getConstraint("cheeseType0", Operator.NOT_EQUAL, "type", Cheese.class);
constraint1 = getConstraint("cheeseType1", Operator.EQUAL, "type", Cheese.class);
constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1 };
checkBetaConstraints(constraints, DoubleBetaConstraints.class);
}
use of org.drools.core.spi.BetaNodeFieldConstraint in project drools by kiegroup.
the class DoubleBetaConstraintsTest method testTwoIndexed.
@Test
public void testTwoIndexed() {
BetaNodeFieldConstraint constraint0 = getConstraint("cheeseType0", Operator.EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint constraint1 = getConstraint("cheeseType1", Operator.EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint[] constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1 };
checkBetaConstraints(constraints, DoubleBetaConstraints.class);
}
use of org.drools.core.spi.BetaNodeFieldConstraint in project drools by kiegroup.
the class TripleBetaConstraintsTest method testNoneIndxed.
@Test
public void testNoneIndxed() {
BetaNodeFieldConstraint constraint0 = getConstraint("cheeseType0", Operator.NOT_EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint constraint1 = getConstraint("cheeseType1", Operator.NOT_EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint constraint3 = getConstraint("cheeseType2", Operator.NOT_EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint[] constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3 };
checkBetaConstraints(constraints, TripleBetaConstraints.class);
}
use of org.drools.core.spi.BetaNodeFieldConstraint in project drools by kiegroup.
the class TripleBetaConstraintsTest method testTwoIndxed.
@Test
public void testTwoIndxed() {
BetaNodeFieldConstraint constraint0 = getConstraint("cheeseType0", Operator.EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint constraint1 = getConstraint("cheeseType1", Operator.EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint constraint3 = getConstraint("cheeseType2", Operator.NOT_EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint[] constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3 };
checkBetaConstraints(constraints, TripleBetaConstraints.class);
constraint0 = getConstraint("cheeseType0", Operator.EQUAL, "type", Cheese.class);
constraint1 = getConstraint("cheeseType1", Operator.NOT_EQUAL, "type", Cheese.class);
constraint3 = getConstraint("cheeseType2", Operator.EQUAL, "type", Cheese.class);
constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3 };
checkBetaConstraints(constraints, TripleBetaConstraints.class);
constraint0 = getConstraint("cheeseType0", Operator.NOT_EQUAL, "type", Cheese.class);
constraint1 = getConstraint("cheeseType1", Operator.EQUAL, "type", Cheese.class);
constraint3 = getConstraint("cheeseType2", Operator.EQUAL, "type", Cheese.class);
constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3 };
checkBetaConstraints(constraints, TripleBetaConstraints.class);
}
use of org.drools.core.spi.BetaNodeFieldConstraint in project drools by kiegroup.
the class SingleBetaConstraintsTest method testNotIndexed.
@Test
public void testNotIndexed() {
BetaNodeFieldConstraint constraint0 = getConstraint("cheeseType0", Operator.NOT_EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint[] constraints = new BetaNodeFieldConstraint[] { constraint0 };
checkBetaConstraints(constraints, SingleBetaConstraints.class);
}
Aggregations