use of org.drools.core.spi.BetaNodeFieldConstraint in project drools by kiegroup.
the class QuadroupleBetaConstraintsTest 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 constraint4 = getConstraint("cheeseType3", Operator.NOT_EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint[] constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3, constraint4 };
checkBetaConstraints(constraints, QuadroupleBetaConstraints.class);
constraint0 = (BetaNodeFieldConstraint) getConstraint("cheeseType0", Operator.EQUAL, "type", Cheese.class);
constraint1 = (BetaNodeFieldConstraint) getConstraint("cheeseType1", Operator.NOT_EQUAL, "type", Cheese.class);
constraint3 = (BetaNodeFieldConstraint) getConstraint("cheeseType2", Operator.EQUAL, "type", Cheese.class);
constraint4 = (BetaNodeFieldConstraint) getConstraint("cheeseType3", Operator.NOT_EQUAL, "type", Cheese.class);
constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3, constraint4 };
checkBetaConstraints(constraints, QuadroupleBetaConstraints.class);
constraint0 = (BetaNodeFieldConstraint) getConstraint("cheeseType0", Operator.EQUAL, "type", Cheese.class);
constraint1 = (BetaNodeFieldConstraint) getConstraint("cheeseType1", Operator.NOT_EQUAL, "type", Cheese.class);
constraint3 = (BetaNodeFieldConstraint) getConstraint("cheeseType2", Operator.NOT_EQUAL, "type", Cheese.class);
constraint4 = (BetaNodeFieldConstraint) getConstraint("cheeseType3", Operator.EQUAL, "type", Cheese.class);
constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3, constraint4 };
checkBetaConstraints(constraints, QuadroupleBetaConstraints.class);
constraint0 = (BetaNodeFieldConstraint) getConstraint("cheeseType0", Operator.NOT_EQUAL, "type", Cheese.class);
constraint1 = (BetaNodeFieldConstraint) getConstraint("cheeseType1", Operator.EQUAL, "type", Cheese.class);
constraint3 = (BetaNodeFieldConstraint) getConstraint("cheeseType2", Operator.EQUAL, "type", Cheese.class);
constraint4 = (BetaNodeFieldConstraint) getConstraint("cheeseType3", Operator.NOT_EQUAL, "type", Cheese.class);
constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3, constraint4 };
checkBetaConstraints(constraints, QuadroupleBetaConstraints.class);
constraint0 = (BetaNodeFieldConstraint) getConstraint("cheeseType0", Operator.NOT_EQUAL, "type", Cheese.class);
constraint1 = (BetaNodeFieldConstraint) getConstraint("cheeseType1", Operator.EQUAL, "type", Cheese.class);
constraint3 = (BetaNodeFieldConstraint) getConstraint("cheeseType2", Operator.NOT_EQUAL, "type", Cheese.class);
constraint4 = (BetaNodeFieldConstraint) getConstraint("cheeseType3", Operator.EQUAL, "type", Cheese.class);
constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3, constraint4 };
checkBetaConstraints(constraints, QuadroupleBetaConstraints.class);
constraint0 = (BetaNodeFieldConstraint) getConstraint("cheeseType0", Operator.NOT_EQUAL, "type", Cheese.class);
constraint1 = (BetaNodeFieldConstraint) getConstraint("cheeseType1", Operator.NOT_EQUAL, "type", Cheese.class);
constraint3 = (BetaNodeFieldConstraint) getConstraint("cheeseType2", Operator.EQUAL, "type", Cheese.class);
constraint4 = (BetaNodeFieldConstraint) getConstraint("cheeseType3", Operator.EQUAL, "type", Cheese.class);
constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3, constraint4 };
checkBetaConstraints(constraints, QuadroupleBetaConstraints.class);
}
use of org.drools.core.spi.BetaNodeFieldConstraint in project drools by kiegroup.
the class QuadroupleBetaConstraintsTest method testOneIndxed.
@Test
public void testOneIndxed() {
BetaNodeFieldConstraint constraint0 = getConstraint("cheeseType0", Operator.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 constraint4 = getConstraint("cheeseType3", Operator.NOT_EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint[] constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3, constraint4 };
checkBetaConstraints(constraints, QuadroupleBetaConstraints.class);
constraint0 = getConstraint("cheeseType0", Operator.NOT_EQUAL, "type", Cheese.class);
constraint1 = getConstraint("cheeseType1", Operator.EQUAL, "type", Cheese.class);
constraint3 = getConstraint("cheeseType2", Operator.NOT_EQUAL, "type", Cheese.class);
constraint4 = getConstraint("cheeseType3", Operator.NOT_EQUAL, "type", Cheese.class);
constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3, constraint4 };
checkBetaConstraints(constraints, QuadroupleBetaConstraints.class);
constraint0 = getConstraint("cheeseType0", Operator.NOT_EQUAL, "type", Cheese.class);
constraint1 = getConstraint("cheeseType1", Operator.NOT_EQUAL, "type", Cheese.class);
constraint3 = getConstraint("cheeseType2", Operator.EQUAL, "type", Cheese.class);
constraint4 = getConstraint("cheeseType3", Operator.NOT_EQUAL, "type", Cheese.class);
constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3, constraint4 };
checkBetaConstraints(constraints, QuadroupleBetaConstraints.class);
constraint0 = getConstraint("cheeseType0", Operator.NOT_EQUAL, "type", Cheese.class);
constraint1 = getConstraint("cheeseType1", Operator.NOT_EQUAL, "type", Cheese.class);
constraint3 = getConstraint("cheeseType2", Operator.NOT_EQUAL, "type", Cheese.class);
constraint4 = getConstraint("cheeseType3", Operator.EQUAL, "type", Cheese.class);
constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3, constraint4 };
checkBetaConstraints(constraints, QuadroupleBetaConstraints.class);
}
use of org.drools.core.spi.BetaNodeFieldConstraint in project drools by kiegroup.
the class QuadroupleBetaConstraintsTest method testThreeIndxed.
@Test
public void testThreeIndxed() {
BetaNodeFieldConstraint constraint0 = getConstraint("cheeseType0", Operator.EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint constraint1 = getConstraint("cheeseType1", Operator.EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint constraint3 = getConstraint("cheeseType2", Operator.EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint constraint4 = getConstraint("cheeseType3", Operator.NOT_EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint[] constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3, constraint4 };
checkBetaConstraints(constraints, QuadroupleBetaConstraints.class);
constraint0 = getConstraint("cheeseType0", Operator.EQUAL, "type", Cheese.class);
constraint1 = getConstraint("cheeseType1", Operator.EQUAL, "type", Cheese.class);
constraint3 = getConstraint("cheeseType2", Operator.NOT_EQUAL, "type", Cheese.class);
constraint4 = getConstraint("cheeseType3", Operator.EQUAL, "type", Cheese.class);
constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3, constraint4 };
checkBetaConstraints(constraints, QuadroupleBetaConstraints.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);
constraint4 = getConstraint("cheeseType3", Operator.EQUAL, "type", Cheese.class);
constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3, constraint4 };
checkBetaConstraints(constraints, QuadroupleBetaConstraints.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);
constraint4 = getConstraint("cheeseType3", Operator.EQUAL, "type", Cheese.class);
constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3, constraint4 };
checkBetaConstraints(constraints, QuadroupleBetaConstraints.class);
}
use of org.drools.core.spi.BetaNodeFieldConstraint in project drools by kiegroup.
the class QuadroupleBetaConstraintsTest 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 constraint4 = getConstraint("cheeseType3", Operator.NOT_EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint[] constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3, constraint4 };
checkBetaConstraints(constraints, QuadroupleBetaConstraints.class);
}
use of org.drools.core.spi.BetaNodeFieldConstraint in project drools by kiegroup.
the class TripleBetaConstraintsTest method testThreeIndxed.
@Test
public void testThreeIndxed() {
BetaNodeFieldConstraint constraint0 = getConstraint("cheeseType0", Operator.EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint constraint1 = getConstraint("cheeseType1", Operator.EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint constraint3 = getConstraint("cheeseType2", Operator.EQUAL, "type", Cheese.class);
BetaNodeFieldConstraint[] constraints = new BetaNodeFieldConstraint[] { constraint0, constraint1, constraint3 };
checkBetaConstraints(constraints, TripleBetaConstraints.class);
}
Aggregations