@Test public void shouldSymlinkExistsIfOptionConfigured() throws Exception { Path file = directory.resolve("file"); Path fileLinked = directory.resolve("file-linked"); Files.createSymbolicLink(file, fileLinked); System.out.println(Files.isSymbolicLink(file)); assertThat(file, exists(LinkOption.NOFOLLOW_LINKS)); }
@Factory public static Matcher<Path> exists(LinkOption... options) { return new Exists(options); }
PathMatchers { @Factory public static Matcher<Path> exists(LinkOption... options) { return new Exists(options); } }
PathMatchers { @Factory public static Matcher<Path> exists(LinkOption... options) { return new Exists(options); } PathMatchers(); }
PathMatchers { @Factory public static Matcher<Path> exists(LinkOption... options) { return new Exists(options); } PathMatchers(); @Factory static Matcher<Path> contains(String fileName); @Factory static Matcher<Path> isDirectory(); @Factory static Matcher<Path> exists(LinkOption... options); @Factory static Matcher<Path> hasFilesCount(int expectedCount); @Factory static Matcher<Path> hasFilesCount(int expectedCount, String glob); }
PathMatchers { @Factory public static Matcher<Path> exists(LinkOption... options) { return new Exists(options); } PathMatchers(); @Factory static Matcher<Path> contains(String fileName); @Factory static Matcher<Path> isDirectory(); @Factory static Matcher<Path> exists(LinkOption... options); @Factory static Matcher<Path> hasFilesCount(int expectedCount); @Factory static Matcher<Path> hasFilesCount(int expectedCount, String glob);  }