@Before public void inContext() { updatedFiles = newArrayList(); core = new DefaultInfinitestCore(mock(TestRunner.class), new ControlledEventQueue()); testDetector = mock(TestDetector.class); when(testDetector.getCurrentTests()).thenReturn(Collections.<String>emptySet()); core.setTestDetector(testDetector); }