Search in sources :

Example 1 with InspectorList

use of org.drools.verifier.core.maps.InspectorList in project drools by kiegroup.

the class RelationResolverConflictsTest method setUp.

@Before
public void setUp() throws Exception {
    configuration = new AnalyzerConfigurationMock();
    a = new InspectorList(configuration);
    b = new InspectorList(configuration);
    firstItemInA = spy(new Person(10));
    isConflicting = spy(new Person(15));
    a.add(firstItemInA);
    a.add(isConflicting);
    b.add(new Person(10));
    relationResolver = new RelationResolver(a, true);
}
Also used : AnalyzerConfigurationMock(org.drools.verifier.core.AnalyzerConfigurationMock) InspectorList(org.drools.verifier.core.maps.InspectorList) Before(org.junit.Before)

Example 2 with InspectorList

use of org.drools.verifier.core.maps.InspectorList in project drools by kiegroup.

the class RelationResolverSubsumptionTest method setUp.

@Before
public void setUp() throws Exception {
    configuration = new AnalyzerConfigurationMock();
    a = new InspectorList(configuration);
    b = new InspectorList(configuration);
    a.add(new Person(15));
    firstItemInB = spy(new Person(15));
    b.add(firstItemInB);
    blockingItem = spy(new Person(10));
    b.add(blockingItem);
    relationResolver = new RelationResolver(a, true);
}
Also used : AnalyzerConfigurationMock(org.drools.verifier.core.AnalyzerConfigurationMock) InspectorList(org.drools.verifier.core.maps.InspectorList) Before(org.junit.Before)

Aggregations

AnalyzerConfigurationMock (org.drools.verifier.core.AnalyzerConfigurationMock)2 InspectorList (org.drools.verifier.core.maps.InspectorList)2 Before (org.junit.Before)2