Search in sources :

Example 6 with ObjectType

use of org.drools.verifier.core.index.model.ObjectType in project drools 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.verifier.core.index.model.ObjectType) Column(org.drools.verifier.core.index.model.Column) AnalyzerConfigurationMock(org.drools.verifier.core.AnalyzerConfigurationMock) Columns(org.drools.verifier.core.index.model.Columns) ObjectTypes(org.drools.verifier.core.index.model.ObjectTypes) Rule(org.drools.verifier.core.index.model.Rule) Rules(org.drools.verifier.core.index.model.Rules) Before(org.junit.Before)

Aggregations

ObjectType (org.drools.verifier.core.index.model.ObjectType)6 Pattern (org.drools.verifier.core.index.model.Pattern)3 Test (org.junit.Test)3 AnalyzerConfigurationMock (org.drools.verifier.core.AnalyzerConfigurationMock)2 AnalyzerConfiguration (org.drools.verifier.core.configuration.AnalyzerConfiguration)2 Before (org.junit.Before)2 Column (org.drools.verifier.core.index.model.Column)1 Columns (org.drools.verifier.core.index.model.Columns)1 ObjectTypes (org.drools.verifier.core.index.model.ObjectTypes)1 Rule (org.drools.verifier.core.index.model.Rule)1 Rules (org.drools.verifier.core.index.model.Rules)1