use of org.ihtsdo.drools.rulestestrig.service.TestDescriptionService in project snomed-drools by IHTSDO.
the class RulesTestManual method setup.
@Before
public void setup() {
ManualResourceConfiguration resourceConfiguration = new ManualResourceConfiguration(true, false, new ResourceConfiguration.Local("src/test/resources/dummy-test-resources"), null);
TestResourceProvider testResourceProvider = this.ruleExecutor.newTestResourceProvider(new ResourceManager(resourceConfiguration, null));
conceptService = new TestConceptService(concepts);
descriptionService = new TestDescriptionService(concepts, testResourceProvider);
relationshipService = new TestRelationshipService(concepts);
}
use of org.ihtsdo.drools.rulestestrig.service.TestDescriptionService in project snomed-drools by IHTSDO.
the class RuleExecutorTest method setup.
@Before
public void setup() {
ruleExecutor = new RuleExecutorFactory().createRuleExecutor("src/test/resources/rules");
ManualResourceConfiguration resourceConfiguration = new ManualResourceConfiguration(true, false, new ResourceConfiguration.Local("src/test/resources/dummy-test-resources"), null);
TestResourceProvider testResourceProvider = ruleExecutor.newTestResourceProvider(new ResourceManager(resourceConfiguration, null));
final Map<String, Concept> concepts = new HashMap<>();
conceptService = new TestConceptService(concepts);
descriptionService = new TestDescriptionService(concepts, testResourceProvider);
relationshipService = new TestRelationshipService(concepts);
}
Aggregations