Search in sources :

Example 1 with InspectorList

use of org.drools.workbench.services.verifier.api.client.maps.InspectorList in project drools-wb 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.workbench.services.verifier.api.client.AnalyzerConfigurationMock) InspectorList(org.drools.workbench.services.verifier.api.client.maps.InspectorList) Before(org.junit.Before)

Example 2 with InspectorList

use of org.drools.workbench.services.verifier.api.client.maps.InspectorList in project drools-wb 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.workbench.services.verifier.api.client.AnalyzerConfigurationMock) InspectorList(org.drools.workbench.services.verifier.api.client.maps.InspectorList) Before(org.junit.Before)

Aggregations

AnalyzerConfigurationMock (org.drools.workbench.services.verifier.api.client.AnalyzerConfigurationMock)2 InspectorList (org.drools.workbench.services.verifier.api.client.maps.InspectorList)2 Before (org.junit.Before)2