Search in sources :

Example 6 with VariableRestriction

use of org.drools.verifier.components.VariableRestriction in project drools by kiegroup.

the class VerifierDataMapsTest method testSaveVerifierComponentAndGetForAllRestrictions.

@Test
public void testSaveVerifierComponentAndGetForAllRestrictions() {
    Pattern pattern = VerifierComponentMockFactory.createPattern1();
    saveVerifierComponentAndGet(LiteralRestriction.createRestriction(pattern, ""));
    saveVerifierComponentAndGet(new EnumRestriction(pattern));
    saveVerifierComponentAndGet(new QualifiedIdentifierRestriction(pattern));
    saveVerifierComponentAndGet(new ReturnValueRestriction(pattern));
    saveVerifierComponentAndGet(new ReturnValueRestriction(pattern));
    saveVerifierComponentAndGet(new VariableRestriction(pattern));
}
Also used : Pattern(org.drools.verifier.components.Pattern) SubPattern(org.drools.verifier.components.SubPattern) VariableRestriction(org.drools.verifier.components.VariableRestriction) EnumRestriction(org.drools.verifier.components.EnumRestriction) ReturnValueRestriction(org.drools.verifier.components.ReturnValueRestriction) QualifiedIdentifierRestriction(org.drools.verifier.components.QualifiedIdentifierRestriction) Test(org.junit.Test)

Aggregations

VariableRestriction (org.drools.verifier.components.VariableRestriction)6 Test (org.junit.Test)4 RuleNameMatchesAgendaFilter (org.drools.core.base.RuleNameMatchesAgendaFilter)3 VerifierReport (org.drools.verifier.data.VerifierReport)3 Cause (org.drools.verifier.report.components.Cause)3 VerifierMessage (org.drools.verifier.report.components.VerifierMessage)3 VerifierMessageBase (org.drools.verifier.report.components.VerifierMessageBase)3 KieSession (org.kie.api.runtime.KieSession)3 EnumRestriction (org.drools.verifier.components.EnumRestriction)1 FieldVariable (org.drools.verifier.components.FieldVariable)1 Pattern (org.drools.verifier.components.Pattern)1 PatternVariable (org.drools.verifier.components.PatternVariable)1 QualifiedIdentifierRestriction (org.drools.verifier.components.QualifiedIdentifierRestriction)1 ReturnValueRestriction (org.drools.verifier.components.ReturnValueRestriction)1 SubPattern (org.drools.verifier.components.SubPattern)1 Variable (org.drools.verifier.components.Variable)1