dependency-check-ant/src/test/java/org/owasp/dependencycheck/taskdefs/DependencyCheckTaskTest.java
/**
     * Test the DependencyCheckTask where a CVE is suppressed.
     */
Test the DependencyCheckTask where a CVE is suppressed.
Test the DependencyCheckTask where a CVE is suppressed .
@Test
    public void testSuppressingCVE() {
        final String antTaskName = "suppression";
        buildFileRule.executeTarget(antTaskName);
        final File report = new File("target/suppression-report.html");
        assertTrue("Expected the DependencyCheck report to be generated", report.exists());
    }
@ Test public void testSuppressingCVE ( ) { final String antTaskName = "suppression" ; buildFileRule . executeTarget ( antTaskName ) ; final File report = new File ( "target/suppression-report.html" ) ; assertTrue ( "Expected the DependencyCheck report to be generated" , report . exists ( ) ) ; }
Test the DependencyCheckTask where a CVE is suppressed.
Test the DependencyCheckTask where a CVE is suppressed .
// GIVEN an ant task with a vulnerability // WHEN executing the ant task // THEN the ant task executed without error