use of org.drools.workbench.services.verifier.api.client.AnalyzerConfigurationMock 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);
}
use of org.drools.workbench.services.verifier.api.client.AnalyzerConfigurationMock 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);
}
use of org.drools.workbench.services.verifier.api.client.AnalyzerConfigurationMock in project drools-wb by kiegroup.
the class ConditionsListenerTest method setUp.
@Before
public void setUp() throws Exception {
configuration = new AnalyzerConfigurationMock();
conditions = new Conditions();
allListener = mock(AllListener.class);
conditions.where(Condition.value().any()).listen().all(allListener);
}
use of org.drools.workbench.services.verifier.api.client.AnalyzerConfigurationMock in project drools-wb by kiegroup.
the class KeyTreeMapMergeTest method setUp.
@Before
public void setUp() throws Exception {
configuration = new AnalyzerConfigurationMock();
treeMap = new KeyTreeMap<>(NAME_KEY_DEFINITION, AGE_KEY_DEFINITION);
pat = new Person("Pat", 10);
add(treeMap, pat);
otherKeyTreeMap = new KeyTreeMap<>(NAME_KEY_DEFINITION, AGE_KEY_DEFINITION);
mat = new Person("mat", 15);
add(otherKeyTreeMap, mat);
}
use of org.drools.workbench.services.verifier.api.client.AnalyzerConfigurationMock in project drools-wb by kiegroup.
the class KeyTreeMapTest method setUp.
@Before
public void setUp() throws Exception {
configuration = new AnalyzerConfigurationMock();
map = new KeyTreeMap<>(AGE, NAME);
toni = new Person("Toni", 20);
eder = new Person("Eder", 20);
michael = new Person("Michael", 30);
put(toni);
put(eder);
put(michael);
}
Aggregations