@Test(expectedExceptions = FileNotFoundException.class, expectedExceptionsMessageRegExp = "necessary Folder 'notValidFolderPath' does not exists!") public void testCheckFoldersException() throws Exception { testling.checkFolders(Paths.get("notValidFolderPath")); }
protected void checkFolders(Path... folders) throws FileNotFoundException { if (folders != null) { for (Path folder : folders) { if (!Files.exists(folder)) { throw new FileNotFoundException("necessary Folder '" + folder.toString() + "' does not exists!"); } } } }
AbstractProperties { protected void checkFolders(Path... folders) throws FileNotFoundException { if (folders != null) { for (Path folder : folders) { if (!Files.exists(folder)) { throw new FileNotFoundException("necessary Folder '" + folder.toString() + "' does not exists!"); } } } } }
AbstractProperties { protected void checkFolders(Path... folders) throws FileNotFoundException { if (folders != null) { for (Path folder : folders) { if (!Files.exists(folder)) { throw new FileNotFoundException("necessary Folder '" + folder.toString() + "' does not exists!"); } } } }  }
AbstractProperties { protected void checkFolders(Path... folders) throws FileNotFoundException { if (folders != null) { for (Path folder : folders) { if (!Files.exists(folder)) { throw new FileNotFoundException("necessary Folder '" + folder.toString() + "' does not exists!"); } } } }   }
AbstractProperties { protected void checkFolders(Path... folders) throws FileNotFoundException { if (folders != null) { for (Path folder : folders) { if (!Files.exists(folder)) { throw new FileNotFoundException("necessary Folder '" + folder.toString() + "' does not exists!"); } } } }    }