Search in sources :

Example 1 with AnalyzerConfigurationMock

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);
}
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 AnalyzerConfigurationMock

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);
}
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 3 with AnalyzerConfigurationMock

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);
}
Also used : AllListener(org.drools.workbench.services.verifier.api.client.index.select.AllListener) AnalyzerConfigurationMock(org.drools.workbench.services.verifier.api.client.AnalyzerConfigurationMock) Before(org.junit.Before)

Example 4 with AnalyzerConfigurationMock

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);
}
Also used : AnalyzerConfigurationMock(org.drools.workbench.services.verifier.api.client.AnalyzerConfigurationMock) Before(org.junit.Before)

Example 5 with AnalyzerConfigurationMock

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);
}
Also used : AnalyzerConfigurationMock(org.drools.workbench.services.verifier.api.client.AnalyzerConfigurationMock) Before(org.junit.Before)

Aggregations

AnalyzerConfigurationMock (org.drools.workbench.services.verifier.api.client.AnalyzerConfigurationMock)8 Before (org.junit.Before)8 InspectorList (org.drools.workbench.services.verifier.api.client.maps.InspectorList)2 Column (org.drools.workbench.services.verifier.api.client.index.Column)1 Columns (org.drools.workbench.services.verifier.api.client.index.Columns)1 ObjectType (org.drools.workbench.services.verifier.api.client.index.ObjectType)1 ObjectTypes (org.drools.workbench.services.verifier.api.client.index.ObjectTypes)1 Rule (org.drools.workbench.services.verifier.api.client.index.Rule)1 Rules (org.drools.workbench.services.verifier.api.client.index.Rules)1 AllListener (org.drools.workbench.services.verifier.api.client.index.select.AllListener)1 HasUUID (org.drools.workbench.services.verifier.api.client.maps.util.HasUUID)1