コード例 #1
0
 @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);
 }
コード例 #2
0
 private void testsToExpect(JavaClass... tests) {
   when(testDetector.findTestsToRun(updatedFiles)).thenReturn(newHashSet(tests));
 }