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());
}