Search in sources :

Example 1 with MaxCore

use of org.junit.experimental.max.MaxCore in project junit4 by junit-team.

the class MaxStarterTest method rememberOldRuns.

@Test
public void rememberOldRuns() {
    fMax.run(TwoUnEqualTests.class);
    MaxCore reincarnation = MaxCore.storedLocally(fMaxFile);
    List<Failure> failures = reincarnation.run(TwoUnEqualTests.class).getFailures();
    assertEquals("fast", failures.get(0).getDescription().getMethodName());
    assertEquals("slow", failures.get(1).getDescription().getMethodName());
}
Also used : MaxCore(org.junit.experimental.max.MaxCore) Failure(org.junit.runner.notification.Failure) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 MaxCore (org.junit.experimental.max.MaxCore)1 Failure (org.junit.runner.notification.Failure)1