@AfterMethod public void cleanUp() throws IOException {
  if (Files.exists(Paths.get(TEST_FOLDER))) {
    Files.walkFileTree(Paths.get(TEST_FOLDER),new DeleteFileVisitor());
    Files.deleteIfExists(Paths.get(TEST_FOLDER));
  }
}

@ AfterMethod public void cleanUp ( ) throws IOException { if ( Files . exists ( Paths . get ( TEST_FOLDER ) ) ) { Files . walkFileTree ( Paths . get ( TEST_FOLDER ) , new DeleteFileVisitor ( ) ) ; Files . deleteIfExists ( Paths . get ( TEST_FOLDER ) ) ; } }
clean test folder after each test .
