@Test public void tests() throws SuiteException { MatcherAssert.assertThat( new SuiteFromFileSystem(new FileSystem.Fake(new FileSystemPath.Fake("a"))).tests(), Matchers.hasSize(1)); }
@Override public final List<SunshineTest> tests() throws SuiteException { try { return fileSystem.files().stream() .map(f -> new TestFromFile(f.path().toString())) .collect(Collectors.toList()); } catch (FileSystemException e) { throw new SuiteException(e); } }
SuiteFromFileSystem implements SunshineSuite { @Override public final List<SunshineTest> tests() throws SuiteException { try { return fileSystem.files().stream() .map(f -> new TestFromFile(f.path().toString())) .collect(Collectors.toList()); } catch (FileSystemException e) { throw new SuiteException(e); } } }
SuiteFromFileSystem implements SunshineSuite { @Override public final List<SunshineTest> tests() throws SuiteException { try { return fileSystem.files().stream() .map(f -> new TestFromFile(f.path().toString())) .collect(Collectors.toList()); } catch (FileSystemException e) { throw new SuiteException(e); } } SuiteFromFileSystem(FileSystem fileSystem); }
SuiteFromFileSystem implements SunshineSuite { @Override public final List<SunshineTest> tests() throws SuiteException { try { return fileSystem.files().stream() .map(f -> new TestFromFile(f.path().toString())) .collect(Collectors.toList()); } catch (FileSystemException e) { throw new SuiteException(e); } } SuiteFromFileSystem(FileSystem fileSystem); @Override final List<SunshineTest> tests(); }
SuiteFromFileSystem implements SunshineSuite { @Override public final List<SunshineTest> tests() throws SuiteException { try { return fileSystem.files().stream() .map(f -> new TestFromFile(f.path().toString())) .collect(Collectors.toList()); } catch (FileSystemException e) { throw new SuiteException(e); } } SuiteFromFileSystem(FileSystem fileSystem); @Override final List<SunshineTest> tests();  }