Search in sources :

Example 1 with RuleExecutor

use of org.ihtsdo.drools.RuleExecutor in project snomed-drools by IHTSDO.

the class RuleExecutorTest method testInitFailure.

@Test
public void testInitFailure() {
    final RuleExecutor ruleExecutor1 = new RuleExecutor("non-existant-directory");
    try {
        ruleExecutor1.execute(RULE_SET_NAMES, Collections.singleton(new ConceptImpl("1")), conceptService, descriptionService, relationshipService, true, false);
        Assert.fail("Should have thrown exception.");
    } catch (RuleExecutorException e) {
    // Pass
    }
}
Also used : ConceptImpl(org.ihtsdo.drools.unittest.domain.ConceptImpl) RuleExecutorException(org.ihtsdo.drools.exception.RuleExecutorException) BadRequestRuleExecutorException(org.ihtsdo.drools.exception.BadRequestRuleExecutorException) RuleExecutor(org.ihtsdo.drools.RuleExecutor) Test(org.junit.Test)

Aggregations

RuleExecutor (org.ihtsdo.drools.RuleExecutor)1 BadRequestRuleExecutorException (org.ihtsdo.drools.exception.BadRequestRuleExecutorException)1 RuleExecutorException (org.ihtsdo.drools.exception.RuleExecutorException)1 ConceptImpl (org.ihtsdo.drools.unittest.domain.ConceptImpl)1 Test (org.junit.Test)1