use of de.prob.model.brules.ComputationStatuses in project prob2 by bendisposto.
the class RulesMachineTest method testRulesMachineExample.
@Test
public void testRulesMachineExample() {
RulesMachineRun rulesMachineRun = startRulesMachineRun(dir + "RulesMachineExample.rmch");
assertEquals(false, rulesMachineRun.hasError());
State finalState = rulesMachineRun.getExecuteRun().getExecuteModelCommand().getFinalState();
ComputationStatuses compResult = new ComputationStatuses(rulesMachineRun.getRulesProject(), finalState);
assertEquals(ComputationStatus.EXECUTED, compResult.getResult("COMP_comp1"));
}
Aggregations