use of de.prob.model.brules.OperationStatus in project prob2 by bendisposto.
the class RulesCheckerTest method testExecuteAllOperations.
@Test
public void testExecuteAllOperations() throws IOException {
StateSpace s = api.brules_load(dir + "RulesMachineExample.rmch");
Trace trace = new Trace(s);
RulesChecker rulesChecker = new RulesChecker(trace);
rulesChecker.init();
rulesChecker.executeAllOperations();
for (Entry<AbstractOperation, OperationStatus> entry : rulesChecker.getOperationStates().entrySet()) {
OperationStatus state = entry.getValue();
if (entry.getKey().getName().equals("RULE_BasedOnRuleWithViolations")) {
assertEquals(RuleStatus.NOT_CHECKED, state);
} else {
assertTrue(state.isExecuted());
}
}
}
Aggregations