Lines Matching defs:path

168             Object[] actual = s.filter(path -> ! path.equals(testFolder))
273 public boolean test(Path path, BasicFileAttributes attrs) {
274 visited.add(path);
275 return pred.test(path, attrs);
284 PathBiPredicate pred = new PathBiPredicate((path, attrs) -> true);
292 pred = new PathBiPredicate((path, attrs) -> attrs.isSymbolicLink());
294 s.forEach(path -> assertTrue(Files.isSymbolicLink(path)));
298 pred = new PathBiPredicate((path, attrs) ->
299 path.getFileName().toString().startsWith("e"));
301 s.forEach(path -> assertEquals(path.getFileName().toString(), "empty"));
305 pred = new PathBiPredicate((path, attrs) ->
306 path.getFileName().toString().startsWith("l") && attrs.isRegularFile());
308 s.forEach(path -> fail("Expect empty stream"));
407 s.forEach(path -> assertEquals(path.getFileName().toString(), "DirectoryIteratorException"));
427 s.forEach(path -> fail("should not get here"));
457 s.forEach(path -> assertEquals(path.getFileName().toString(), "IOException"));
461 String[] result = s.map(path -> path.getFileName().toString())
469 s.forEach(path -> fail("should have caused exception"));
475 String[] result = s.map(path -> path.getFileName().toString())
485 String[] result = s.map(path -> path.getFileName().toString())
531 String[] result = s.map(path -> path.getFileName().toString())
537 String[] result = s.map(path -> path.getFileName().toString())
544 String[] result = s.map(path -> path.getFileName().toString())
554 String[] result = s.map(path -> path.getFileName().toString())
560 String[] result = s.map(path -> path.getFileName().toString())
568 String[] result = s.map(path -> path.getFileName().toString())
575 String[] result = s.map(path -> path.getFileName().toString())
585 String[] result = s.map(path -> path.getFileName().toString())
590 String[] result = s.map(path -> path.getFileName().toString())
599 String[] result = s.map(path -> path.getFileName().toString())
610 String[] result = s.map(path -> path.getFileName().toString())
621 String[] result = s.map(path -> path.getFileName().toString())
631 String[] result = s.map(path -> path.getFileName().toString())
691 Path path = Paths.get("/proc/cpuinfo");
692 if (Files.exists(path)) {
695 Files.lines(path).collect(Collectors.joining(NEW_LINE));
697 fail("Files.lines(\"" + path + "\") returns no data");