Search in sources :

Example 6 with AnalyzerConfigurationMock

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

the class UpdatableInspectorListTest method setUp.

@Before
public void setUp() throws Exception {
    configuration = new AnalyzerConfigurationMock();
    list = new UpdatableInspectorList<>(new InspectorFactory<HasUUID, Item>(configuration) {

        @Override
        public HasUUID make(final Item item) {
            return new HasUUID() {

                @Override
                public UUIDKey getUuidKey() {
                    return mock(UUIDKey.class);
                }
            };
        }
    }, configuration);
}
Also used : HasUUID(org.drools.workbench.services.verifier.api.client.maps.util.HasUUID) AnalyzerConfigurationMock(org.drools.workbench.services.verifier.api.client.AnalyzerConfigurationMock) Before(org.junit.Before)

Example 7 with AnalyzerConfigurationMock

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

Example 8 with AnalyzerConfigurationMock

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

the class QueryableIndexTest method setUp.

@Before
public void setUp() throws Exception {
    configuration = new AnalyzerConfigurationMock();
    final Rules rules = new Rules();
    rules.add(new Rule(0, configuration));
    rules.add(new Rule(1, configuration));
    rules.add(new Rule(2, configuration));
    final Columns columns = new Columns();
    firstColumn = new Column(0, configuration);
    columns.add(firstColumn);
    columns.add(new Column(1, configuration));
    final ObjectTypes objectTypes = new ObjectTypes();
    objectTypes.add(new ObjectType("Person", configuration));
    objectTypes.add(new ObjectType("Address", configuration));
    queryableIndex = new QueryableIndex(rules, columns, objectTypes);
}
Also used : ObjectType(org.drools.workbench.services.verifier.api.client.index.ObjectType) Column(org.drools.workbench.services.verifier.api.client.index.Column) AnalyzerConfigurationMock(org.drools.workbench.services.verifier.api.client.AnalyzerConfigurationMock) Columns(org.drools.workbench.services.verifier.api.client.index.Columns) ObjectTypes(org.drools.workbench.services.verifier.api.client.index.ObjectTypes) Rule(org.drools.workbench.services.verifier.api.client.index.Rule) Rules(org.drools.workbench.services.verifier.api.client.index.Rules) Before(org.junit.Before)

Aggregations

AnalyzerConfigurationMock (org.drools.workbench.services.verifier.api.client.AnalyzerConfigurationMock)8 Before (org.junit.Before)8 InspectorList (org.drools.workbench.services.verifier.api.client.maps.InspectorList)2 Column (org.drools.workbench.services.verifier.api.client.index.Column)1 Columns (org.drools.workbench.services.verifier.api.client.index.Columns)1 ObjectType (org.drools.workbench.services.verifier.api.client.index.ObjectType)1 ObjectTypes (org.drools.workbench.services.verifier.api.client.index.ObjectTypes)1 Rule (org.drools.workbench.services.verifier.api.client.index.Rule)1 Rules (org.drools.workbench.services.verifier.api.client.index.Rules)1 AllListener (org.drools.workbench.services.verifier.api.client.index.select.AllListener)1 HasUUID (org.drools.workbench.services.verifier.api.client.maps.util.HasUUID)1