01: package org.drools.common;
02:
03: import org.drools.Cheese;
04: import org.drools.base.evaluators.Operator;
05: import org.drools.rule.VariableConstraint;
06:
07: public class SingleBetaConstraintsTest extends BaseBetaConstraintsTest {
08:
09: public void testIndxed() {
10: VariableConstraint constraint0 = (VariableConstraint) getConstraint(
11: "cheeseType0", Operator.EQUAL, "type", Cheese.class);
12: VariableConstraint[] constraints = new VariableConstraint[] { constraint0 };
13: checkBetaConstraints(constraints, SingleBetaConstraints.class);
14: }
15:
16: public void testNotIndxed() {
17: VariableConstraint constraint0 = (VariableConstraint) getConstraint(
18: "cheeseType0", Operator.NOT_EQUAL, "type", Cheese.class);
19: VariableConstraint[] constraints = new VariableConstraint[] { constraint0 };
20: checkBetaConstraints(constraints, SingleBetaConstraints.class);
21: }
22:
23: }
|