@Test public void pathUtilTest() throws IOException { LOG.info(Files.isDirectory(Paths.get("/tmp/test")) == true ? "True " : "False"); LOG.info(Files.exists(Paths.get("/tmp/test")) == true ? "True " : "False"); LOG.info(Files.isWritable(Paths.get("/tmp/test").getParent()) == true ? "True " : "False"); try { LOG.info(CrawlerUtils.getResourcePath("config")); LOG.info(CrawlerUtils.getResourcePath("")); LOG.info(CrawlerUtils.getCurrentBuildPath()); } catch (Exception e) { LOG.debug(e.toString()); } }