@Test public void testExecuteGuardedIntegrationTest() throws Exception { final File testPackage = TestPackageUtil.prepareTestPackage("tmp_foo_bar.zip"); final File testOutDir = new File(testOutBaseDir, "testExecuteGuardedIntegrationTest"); FileUtils.deleteDirectory(testOutDir); testOutDir.mkdirs(); final File artifactFile = testPackage; final MavenProject project = mock(MavenProject.class); ScanArtifactMojo mojo = newMojo(); mojo.summaryFile = new File(testOutDir, "summary.json"); mojo.project = project; final Artifact artifact = mock(Artifact.class); when(project.getArtifact()).thenReturn(artifact); when(artifact.getFile()).thenReturn(artifactFile); mojo.executeGuardedIntegrationTest(); }
@Override protected void executeGuardedIntegrationTest() throws MojoFailureException { performScan(Collections.singletonList(getScanArtifactFile())); }
ScanArtifactMojo extends AbstractITestWithPlanMojo { @Override protected void executeGuardedIntegrationTest() throws MojoFailureException { performScan(Collections.singletonList(getScanArtifactFile())); } }
ScanArtifactMojo extends AbstractITestWithPlanMojo { @Override protected void executeGuardedIntegrationTest() throws MojoFailureException { performScan(Collections.singletonList(getScanArtifactFile())); }  }
ScanArtifactMojo extends AbstractITestWithPlanMojo { @Override protected void executeGuardedIntegrationTest() throws MojoFailureException { performScan(Collections.singletonList(getScanArtifactFile())); }   }
ScanArtifactMojo extends AbstractITestWithPlanMojo { @Override protected void executeGuardedIntegrationTest() throws MojoFailureException { performScan(Collections.singletonList(getScanArtifactFile())); }   @Parameter(property = "oakpal.scan.skip")
    public boolean skip; }