@Test public void files() throws FileSystemException { MatcherAssert.assertThat( new FileSystemFiltered( new FileSystem.Fake( Collections.singletonList(new FileSystemPath.Fake())), new Condition.Fake(false)) .files(), Matchers.hasSize(0)); }
@Override public List<FileSystemPath> files() throws FileSystemException { return fileSystem.files().stream() .filter(f -> condition.applicable(f.path().toString())) .collect(Collectors.toList()); }
FileSystemFiltered implements FileSystem { @Override public List<FileSystemPath> files() throws FileSystemException { return fileSystem.files().stream() .filter(f -> condition.applicable(f.path().toString())) .collect(Collectors.toList()); } }
FileSystemFiltered implements FileSystem { @Override public List<FileSystemPath> files() throws FileSystemException { return fileSystem.files().stream() .filter(f -> condition.applicable(f.path().toString())) .collect(Collectors.toList()); } FileSystemFiltered(FileSystem fileSystem, Condition condition); }
FileSystemFiltered implements FileSystem { @Override public List<FileSystemPath> files() throws FileSystemException { return fileSystem.files().stream() .filter(f -> condition.applicable(f.path().toString())) .collect(Collectors.toList()); } FileSystemFiltered(FileSystem fileSystem, Condition condition); @Override List<FileSystemPath> files(); }
FileSystemFiltered implements FileSystem { @Override public List<FileSystemPath> files() throws FileSystemException { return fileSystem.files().stream() .filter(f -> condition.applicable(f.path().toString())) .collect(Collectors.toList()); } FileSystemFiltered(FileSystem fileSystem, Condition condition); @Override List<FileSystemPath> files();  }