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;
}
Aggregations