Search in sources :

Example 1 with VerifierResult

use of org.btrplace.safeplace.testing.verification.VerifierResult in project scheduler by btrplace.

the class DefaultTestCampaign method test.

@Override
public TestCaseResult test(TestCase tc) {
    VerifierResult res = oracle.verify(tc);
    DefaultChocoScheduler sched = new DefaultChocoScheduler(params);
    try {
        ReconfigurationPlan plan = sched.solve(tc.instance());
        checkConsistency(plan, tc);
    } catch (RuntimeException e) {
        // A runtime exception is a CRASH. Should not happen
        return new TestCaseResult(tc, e, res);
    }
    return new TestCaseResult(tc, sched.getStatistics(), res);
}
Also used : VerifierResult(org.btrplace.safeplace.testing.verification.VerifierResult) DefaultChocoScheduler(org.btrplace.scheduler.choco.DefaultChocoScheduler) ReconfigurationPlan(org.btrplace.plan.ReconfigurationPlan)

Aggregations

ReconfigurationPlan (org.btrplace.plan.ReconfigurationPlan)1 VerifierResult (org.btrplace.safeplace.testing.verification.VerifierResult)1 DefaultChocoScheduler (org.btrplace.scheduler.choco.DefaultChocoScheduler)1