Search in sources :

Example 6 with ObjectField

use of org.drools.workbench.services.verifier.api.client.index.ObjectField in project drools-wb by kiegroup.

the class ConditionsInspectorTest method setUp.

@Before
public void setUp() throws Exception {
    configurationMock = new AnalyzerConfigurationMock();
    field = new Field(new ObjectField("Person", "Integer", "age", configurationMock), "Person", "Integer", "age", configurationMock);
}
Also used : ObjectField(org.drools.workbench.services.verifier.api.client.index.ObjectField) Field(org.drools.workbench.services.verifier.api.client.index.Field) AnalyzerConfigurationMock(org.drools.workbench.services.verifier.core.checks.AnalyzerConfigurationMock) ObjectField(org.drools.workbench.services.verifier.api.client.index.ObjectField) Before(org.junit.Before)

Example 7 with ObjectField

use of org.drools.workbench.services.verifier.api.client.index.ObjectField in project drools-wb 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));
}
Also used : Field(org.drools.workbench.services.verifier.api.client.index.Field) ObjectField(org.drools.workbench.services.verifier.api.client.index.ObjectField) AnalyzerConfigurationMock(org.drools.workbench.services.verifier.core.checks.AnalyzerConfigurationMock) ObjectField(org.drools.workbench.services.verifier.api.client.index.ObjectField) Before(org.junit.Before)

Aggregations

ObjectField (org.drools.workbench.services.verifier.api.client.index.ObjectField)7 Field (org.drools.workbench.services.verifier.api.client.index.Field)4 AnalyzerConfigurationMock (org.drools.workbench.services.verifier.core.checks.AnalyzerConfigurationMock)3 Before (org.junit.Before)3 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 List (java.util.List)2 Map (java.util.Map)2 Collectors.toList (java.util.stream.Collectors.toList)2 FieldCondition (org.drools.workbench.services.verifier.api.client.index.FieldCondition)2 Arrays (java.util.Arrays)1 Collection (java.util.Collection)1 Comparator (java.util.Comparator)1 HashSet (java.util.HashSet)1 Iterator (java.util.Iterator)1 Entry (java.util.Map.Entry)1 Objects (java.util.Objects)1 Set (java.util.Set)1 SortedSet (java.util.SortedSet)1 TreeSet (java.util.TreeSet)1