@Test public void givesPathWithinRoot() throws Exception { File file = TestUtils.getTestDataFile(PATH); Path pathWithinRoot = Paths.get("hello/world/foobar.txt"); SystemFileData systemFileData = new SystemFileData(file, pathWithinRoot); assertThat((Object) systemFileData.getPathWithinRoot()).isEqualTo(pathWithinRoot); }
@Override public Path getPathWithinRoot() { return pathWithinRoot; }
SystemFileData implements FileData { @Override public Path getPathWithinRoot() { return pathWithinRoot; } }
SystemFileData implements FileData { @Override public Path getPathWithinRoot() { return pathWithinRoot; } SystemFileData(File file, Path pathWithinRoot);  SystemFileData(File file, Path pathWithinRoot, Path pathWithinModule); }
SystemFileData implements FileData { @Override public Path getPathWithinRoot() { return pathWithinRoot; } SystemFileData(File file, Path pathWithinRoot);  SystemFileData(File file, Path pathWithinRoot, Path pathWithinModule); @Override @MustBeClosed InputStream getInputStream(); @Override Path getPathWithinRoot(); @Override Path getPathWithinModule(); Path getSystemPath(); @Override long getSize(); }
SystemFileData implements FileData { @Override public Path getPathWithinRoot() { return pathWithinRoot; } SystemFileData(File file, Path pathWithinRoot);  SystemFileData(File file, Path pathWithinRoot, Path pathWithinModule); @Override @MustBeClosed InputStream getInputStream(); @Override Path getPathWithinRoot(); @Override Path getPathWithinModule(); Path getSystemPath(); @Override long getSize();  }