SimpleFileVisitor implements FileVisitor<T> { @Override public FileVisitResult postVisitDirectory(T dir, IOException exc) throws IOException { checkNotNull("dir", dir); if (exc != null) { throw exc; } return FileVisitResult.CONTINUE; } protected  SimpleFileVisitor(); @Override FileVisitResult preVisitDirectory(T dir,
                                             BasicFileAttributes attrs); @Override FileVisitResult visitFile(T file,
                                     BasicFileAttributes attrs); @Override FileVisitResult visitFileFailed(T file,
                                           IOException exc); @Override FileVisitResult postVisitDirectory(T dir,
                                              IOException exc);  }
@Test public void postVisitDirectoryNull1() { final Path dir = newTempDir(null); final Path file = Files.createTempFile(dir, "foo", "bar"); simple.postVisitDirectory(dir, null); }
@Test(expected = IllegalArgumentException.class) public void postVisitDirectoryNull2() { simple.postVisitDirectory(null, new IOException()); }
@Test(expected = IllegalArgumentException.class) public void postVisitDirectoryNull3() { simple.postVisitDirectory(null, null); }