use of org.drools.verifier.core.AnalyzerConfigurationMock in project drools 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.verifier.core.AnalyzerConfigurationMock in project drools by kiegroup.
the class QueryableIndexTest method setUp.
@Before
public void setUp() throws Exception {
configuration = new AnalyzerConfigurationMock();
final Rules rules = new Rules();
rules.add(new Rule(0, configuration));
rules.add(new Rule(1, configuration));
rules.add(new Rule(2, configuration));
final Columns columns = new Columns();
firstColumn = new Column(0, configuration);
columns.add(firstColumn);
columns.add(new Column(1, configuration));
final ObjectTypes objectTypes = new ObjectTypes();
objectTypes.add(new ObjectType("Person", configuration));
objectTypes.add(new ObjectType("Address", configuration));
queryableIndex = new QueryableIndex(rules, columns, objectTypes);
}
use of org.drools.verifier.core.AnalyzerConfigurationMock in project drools 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.verifier.core.AnalyzerConfigurationMock in project drools 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);
}
use of org.drools.verifier.core.AnalyzerConfigurationMock in project drools by kiegroup.
the class UpdatableInspectorListTest method setUp.
@Before
public void setUp() throws Exception {
configuration = new AnalyzerConfigurationMock();
list = new UpdatableInspectorList<>(new InspectorFactory<HasUUID, Item>(configuration) {
@Override
public HasUUID make(final Item item) {
return new HasUUID() {
@Override
public UUIDKey getUuidKey() {
return mock(UUIDKey.class);
}
};
}
}, configuration);
}
Aggregations