use of org.drools.verifier.core.AnalyzerConfigurationMock in project drools by kiegroup.
the class KeyTreeMapMultiValueKeyTest method setUp.
@Before
public void setUp() throws Exception {
configuration = new AnalyzerConfigurationMock();
map = new KeyTreeMap<>(NAME, AREA_CODE);
finland = new Country("Finland", 48100);
sweden = new Country("Sweden", 12345, 51000);
norway = new Country("Norway", 00000, 51000);
map.put(finland);
map.put(sweden);
map.put(norway);
}
use of org.drools.verifier.core.AnalyzerConfigurationMock 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);
}
use of org.drools.verifier.core.AnalyzerConfigurationMock in project drools by kiegroup.
the class FieldInspectorRelationsTest method setUp.
@Before
public void setUp() throws Exception {
configurationMock = new AnalyzerConfigurationMock();
ObjectField objectField = mock(ObjectField.class);
a = new FieldInspector(new Field(objectField, "org.Person", "String", "name", configurationMock), mock(RuleInspectorUpdater.class), mock(AnalyzerConfiguration.class));
b = new FieldInspector(new Field(objectField, "org.Person", "String", "name", configurationMock), mock(RuleInspectorUpdater.class), mock(AnalyzerConfiguration.class));
}
use of org.drools.verifier.core.AnalyzerConfigurationMock in project drools by kiegroup.
the class CheckFactoryTest method defaultWhiteList.
@Test
public void defaultWhiteList() throws Exception {
final AnalyzerConfigurationMock configuration = new AnalyzerConfigurationMock(CheckConfiguration.newDefault());
assertFalse(new CheckFactory(configuration).makeSingleChecks(mock(RuleInspector.class)).isEmpty());
assertTrue(new CheckFactory(configuration).makePairRowCheck(mock(RuleInspector.class), mock(RuleInspector.class)).isPresent());
}
Aggregations