dependency-check-ant/src/test/java/org/owasp/dependencycheck/taskdefs/DependencyCheckTaskTest.java
/**
     * Test of addFileSet method, of class DependencyCheckTask.
     */
Test of addFileSet method, of class DependencyCheckTask.
Test of addFileSet method of class DependencyCheckTask .
@Test
    public void testAddFileSet() throws Exception {
        File report = new File("target/dependency-check-report.html");
        if (report.exists() && !report.delete()) {
            throw new Exception("Unable to delete 'target/DependencyCheck-Report.html' prior to test.");
        }
        buildFileRule.executeTarget("test.fileset");
        assertTrue("DependencyCheck report was not generated", report.exists());
    }
@ Test public void testAddFileSet ( ) throws Exception { File report = new File ( "target/dependency-check-report.html" ) ; if ( report . exists ( ) && ! report . delete ( ) ) { throw new Exception ( "Unable to delete 'target/DependencyCheck-Report.html' prior to test." ) ; } buildFileRule . executeTarget ( "test.fileset" ) ; assertTrue ( "DependencyCheck report was not generated" , report . exists ( ) ) ; }
Test of addFileSet method, of class DependencyCheckTask.
Test of addFileSet method of class DependencyCheckTask .