assertThat(initializer.getMavenPluginHandler(project), instanceOf(JaCoCoMavenPluginHandler.class));
}
@Test
public void shouldNotExecuteMavenWhenReuseReports() {
Project project = mockProject();
<BUG>when(project.getFileSystem().hasTestFiles(argThat(is(Java.INSTANCE)))).thenReturn(true);
when(project.getAnalysisType()).thenReturn(Project.AnalysisType.REUSE_REPORTS);</BUG>
assertThat(initializer.shouldExecuteOnProject(project), is(false));
}
@Test

assertThat(initializer.getMavenPluginHandler(project), instanceOf(JaCoCoMavenPluginHandler.class));
}
@Test
public void shouldNotExecuteMavenWhenReuseReports() {
Project project = mockProject();
InputFile inputFile = mock(InputFile.class);
when(project.getFileSystem().testFiles(Java.KEY)).thenReturn(Collections.singletonList(inputFile));
when(project.getAnalysisType()).thenReturn(Project.AnalysisType.REUSE_REPORTS);
assertThat(initializer.shouldExecuteOnProject(project), is(false));
}
@Test
