use of org.drools.verifier.core.AnalyzerConfigurationMock in project drools by kiegroup.
the class ActionInspectorConflictResolverTest method testNoConflict001.
@Test
public void testNoConflict001() throws Exception {
ActionInspector a = createSetActionInspector(new Field(mock(ObjectField.class), "Person", "String", "name", new AnalyzerConfigurationMock()), "Toni");
ActionInspector b = createSetActionInspector(new Field(mock(ObjectField.class), "Address", "String", "street", new AnalyzerConfigurationMock()), "Rambo");
assertFalse(a.conflicts(b));
assertFalse(b.conflicts(a));
}
use of org.drools.verifier.core.AnalyzerConfigurationMock in project drools by kiegroup.
the class ActionInspectorConflictResolverTest method testNoConflict002.
@Test
public void testNoConflict002() throws Exception {
ActionInspector a = createSetActionInspector(new Field(mock(ObjectField.class), "Person", "String", "name", new AnalyzerConfigurationMock()), "Toni");
ActionInspector b = createSetActionInspector(new Field(mock(ObjectField.class), "Person", "String", "name", new AnalyzerConfigurationMock()), "Toni");
assertFalse(a.conflicts(b));
assertFalse(b.conflicts(a));
}
use of org.drools.verifier.core.AnalyzerConfigurationMock in project drools by kiegroup.
the class ActionInspectorConflictResolverTest method testRedundancy004.
@Test
public void testRedundancy004() throws Exception {
ActionInspector a = createSetActionInspector(new Field(mock(ObjectField.class), "Person", "Boolean", "isOldEnough", new AnalyzerConfigurationMock()), true);
ActionInspector b = createSetActionInspector(new Field(mock(ObjectField.class), "Person", "Boolean", "isOldEnough", new AnalyzerConfigurationMock()), "true");
assertTrue(a.isRedundant(b));
assertTrue(b.isRedundant(a));
}
use of org.drools.verifier.core.AnalyzerConfigurationMock in project drools by kiegroup.
the class ActionInspectorConflictResolverTest method testConflict001.
@Test
public void testConflict001() throws Exception {
ActionInspector a = createSetActionInspector(new Field(mock(ObjectField.class), "Person", "String", "name", new AnalyzerConfigurationMock()), "Toni");
ActionInspector b = createSetActionInspector(new Field(mock(ObjectField.class), "Person", "String", "name", new AnalyzerConfigurationMock()), "Rambo");
assertTrue(a.conflicts(b));
assertTrue(b.conflicts(a));
}
use of org.drools.verifier.core.AnalyzerConfigurationMock in project drools by kiegroup.
the class ActionInspectorConflictResolverTest method testRedundancy003.
@Test
public void testRedundancy003() throws Exception {
ActionInspector a = createSetActionInspector(new Field(mock(ObjectField.class), "org.test1.Person", "String", "name", new AnalyzerConfigurationMock()), "Toni");
ActionInspector b = createSetActionInspector(new Field(mock(ObjectField.class), "org.test2.Person", "String", "name", new AnalyzerConfigurationMock()), "Toni");
assertFalse(a.isRedundant(b));
assertFalse(b.isRedundant(a));
}
Aggregations