Search in sources :

Example 1 with RuleInspectorCache

use of org.drools.workbench.services.verifier.core.cache.RuleInspectorCache in project drools-wb 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 : AnalyzerConfigurationMock(org.drools.workbench.services.verifier.core.checks.AnalyzerConfigurationMock) RuleInspectorCache(org.drools.workbench.services.verifier.core.cache.RuleInspectorCache) IndexImpl(org.drools.workbench.services.verifier.api.client.index.IndexImpl) Index(org.drools.workbench.services.verifier.api.client.index.Index) Rule(org.drools.workbench.services.verifier.api.client.index.Rule) AnalyzerConfiguration(org.drools.workbench.services.verifier.api.client.configuration.AnalyzerConfiguration) Before(org.junit.Before)

Aggregations

AnalyzerConfiguration (org.drools.workbench.services.verifier.api.client.configuration.AnalyzerConfiguration)1 Index (org.drools.workbench.services.verifier.api.client.index.Index)1 IndexImpl (org.drools.workbench.services.verifier.api.client.index.IndexImpl)1 Rule (org.drools.workbench.services.verifier.api.client.index.Rule)1 RuleInspectorCache (org.drools.workbench.services.verifier.core.cache.RuleInspectorCache)1 AnalyzerConfigurationMock (org.drools.workbench.services.verifier.core.checks.AnalyzerConfigurationMock)1 Before (org.junit.Before)1