@Before public void createMax() { fMaxFile = new File("MaxCore.ser"); if (fMaxFile.exists()) { fMaxFile.delete(); } fMax = MaxCore.storedLocally(fMaxFile); }
@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()); }