use of org.drools.verifier.core.AnalyzerConfigurationMock in project drools by kiegroup.
the class ActionInspectorConflictResolverTest method testRedundancy005.
@Test
public void testRedundancy005() 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()), "false");
assertFalse(a.isRedundant(b));
assertFalse(b.isRedundant(a));
}
use of org.drools.verifier.core.AnalyzerConfigurationMock in project drools by kiegroup.
the class ActionInspectorConflictResolverTest method testRedundancy007.
@Test
public void testRedundancy007() throws Exception {
ActionInspector a = createSetActionInspector(new Field(mock(ObjectField.class), "Person", "Integer", "age", new AnalyzerConfigurationMock()), 20);
ActionInspector b = createSetActionInspector(new Field(mock(ObjectField.class), "Person", "Integer", "age", new AnalyzerConfigurationMock()), "10");
assertFalse(a.isRedundant(b));
assertFalse(b.isRedundant(a));
}
use of org.drools.verifier.core.AnalyzerConfigurationMock in project drools by kiegroup.
the class ActionInspectorConflictResolverTest method testRedundancy009.
@Test
public void testRedundancy009() throws Exception {
Date value = new Date();
ActionInspector a = createSetActionInspector(new Field(mock(ObjectField.class), "Person", "Integer", "birthDay", new AnalyzerConfigurationMock()), value);
ActionInspector b = createSetActionInspector(new Field(mock(ObjectField.class), "Person", "Integer", "birthDay", new AnalyzerConfigurationMock()), "29-Dec-1981");
assertFalse(a.isRedundant(b));
assertFalse(b.isRedundant(a));
}
use of org.drools.verifier.core.AnalyzerConfigurationMock in project drools by kiegroup.
the class ActionInspectorConflictResolverTest method testNoConflict003.
@Test
public void testNoConflict003() throws Exception {
ActionInspector a = createSetActionInspector(new FieldAction(new Field(mock(ObjectField.class), "Person", "String", "name", new AnalyzerConfigurationMock()), mock(Column.class), new Values(true), new AnalyzerConfigurationMock()));
ActionInspector b = createSetActionInspector(new FieldAction(new Field(mock(ObjectField.class), "Person", "String", "name", new AnalyzerConfigurationMock()), mock(Column.class), new Values(true), new AnalyzerConfigurationMock()));
assertFalse(a.conflicts(b));
assertFalse(b.conflicts(a));
}
use of org.drools.verifier.core.AnalyzerConfigurationMock in project drools by kiegroup.
the class ActionInspectorConflictResolverTest method testRedundancy001.
@Test
public void testRedundancy001() 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");
assertTrue(a.isRedundant(b));
assertTrue(b.isRedundant(a));
}
Aggregations