Search in sources :

Example 1 with TestCaseResult

use of org.btrplace.safeplace.testing.TestCaseResult in project scheduler by btrplace.

the class Validator method test.

@Override
public boolean test(TestCase o) {
    duration = -System.currentTimeMillis();
    try {
        for (Constraint c : cstrs) {
            TestCase tc = purge(o, c);
            TestCaseResult res = tester.test(tc);
            if (res.result() != Result.SUCCESS) {
                return false;
            }
        }
    } finally {
        duration += System.currentTimeMillis();
    }
    return true;
}
Also used : TestCaseResult(org.btrplace.safeplace.testing.TestCaseResult) Constraint(org.btrplace.safeplace.spec.Constraint) TestCase(org.btrplace.safeplace.testing.TestCase)

Aggregations

Constraint (org.btrplace.safeplace.spec.Constraint)1 TestCase (org.btrplace.safeplace.testing.TestCase)1 TestCaseResult (org.btrplace.safeplace.testing.TestCaseResult)1