Search in sources :

Example 1 with IndexImpl

use of org.drools.verifier.core.index.IndexImpl in project drools by kiegroup.

the class RuleInspectorCacheTest method setUp.

@Before
public void setUp() throws Exception {
    final Index index = new IndexImpl();
    final AnalyzerConfiguration configuration = new AnalyzerConfigurationMock();
    cache = new RuleInspectorCache(index, configuration);
    cache.addRule(new Rule(0, configuration));
    cache.addRule(new Rule(1, configuration));
    cache.addRule(new Rule(2, configuration));
    cache.addRule(new Rule(3, configuration));
    cache.addRule(new Rule(4, configuration));
    cache.addRule(new Rule(5, configuration));
    cache.addRule(new Rule(6, configuration));
}
Also used : RuleInspectorCache(org.drools.verifier.core.cache.RuleInspectorCache) IndexImpl(org.drools.verifier.core.index.IndexImpl) Index(org.drools.verifier.core.index.Index) Rule(org.drools.verifier.core.index.model.Rule) AnalyzerConfiguration(org.drools.verifier.core.configuration.AnalyzerConfiguration) Before(org.junit.Before)

Aggregations

RuleInspectorCache (org.drools.verifier.core.cache.RuleInspectorCache)1 AnalyzerConfiguration (org.drools.verifier.core.configuration.AnalyzerConfiguration)1 Index (org.drools.verifier.core.index.Index)1 IndexImpl (org.drools.verifier.core.index.IndexImpl)1 Rule (org.drools.verifier.core.index.model.Rule)1 Before (org.junit.Before)1