use of org.drools.workbench.services.verifier.core.checks.AnalyzerConfigurationMock in project drools-wb 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()), DataType.DataTypes.STRING, "Toni");
ActionInspector b = createSetActionInspector(new Field(mock(ObjectField.class), "org.test2.Person", "String", "name", new AnalyzerConfigurationMock()), DataType.DataTypes.STRING, "Toni");
assertFalse(a.isRedundant(b));
assertFalse(b.isRedundant(a));
}
use of org.drools.workbench.services.verifier.core.checks.AnalyzerConfigurationMock in project drools-wb 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()), DataType.DataTypes.STRING, "Toni");
ActionInspector b = createSetActionInspector(new Field(mock(ObjectField.class), "Address", "String", "street", new AnalyzerConfigurationMock()), DataType.DataTypes.STRING, "Rambo");
assertFalse(a.conflicts(b));
assertFalse(b.conflicts(a));
}
use of org.drools.workbench.services.verifier.core.checks.AnalyzerConfigurationMock in project drools-wb 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()), DataType.DataTypes.BOOLEAN, true);
ActionInspector b = createSetActionInspector(new Field(mock(ObjectField.class), "Person", "Boolean", "isOldEnough", new AnalyzerConfigurationMock()), DataType.DataTypes.STRING, "true");
assertTrue(a.isRedundant(b));
assertTrue(b.isRedundant(a));
}
use of org.drools.workbench.services.verifier.core.checks.AnalyzerConfigurationMock in project drools-wb by kiegroup.
the class ActionInspectorConflictResolverTest method testRedundancy002.
@Test
public void testRedundancy002() throws Exception {
ActionInspector a = createSetActionInspector(new Field(mock(ObjectField.class), "Person", "String", "name", new AnalyzerConfigurationMock()), DataType.DataTypes.STRING, "Toni");
ActionInspector b = createSetActionInspector(new Field(mock(ObjectField.class), "Person", "String", "name", new AnalyzerConfigurationMock()), DataType.DataTypes.STRING, "Rambo");
assertFalse(a.isRedundant(b));
assertFalse(b.isRedundant(a));
}
use of org.drools.workbench.services.verifier.core.checks.AnalyzerConfigurationMock in project drools-wb 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()), DataType.DataTypes.STRING, "Toni");
ActionInspector b = createSetActionInspector(new Field(mock(ObjectField.class), "Person", "String", "name", new AnalyzerConfigurationMock()), DataType.DataTypes.STRING, "Toni");
assertFalse(a.conflicts(b));
assertFalse(b.conflicts(a));
}
Aggregations