@Test public void testBasePathInequivalence() { FileSystem fs = createMock(FileSystem.class); VolumeImpl volume = new VolumeImpl(fs, "/accumulo"); assertFalse(volume.equivalentPaths(new Path("/something/accumulo"))); }
boolean equivalentPaths(Path other) { return other.toUri().getPath().startsWith(basePath); }
VolumeImpl implements Volume { boolean equivalentPaths(Path other) { return other.toUri().getPath().startsWith(basePath); } }
VolumeImpl implements Volume { boolean equivalentPaths(Path other) { return other.toUri().getPath().startsWith(basePath); } VolumeImpl(Path path, Configuration conf);  VolumeImpl(FileSystem fs, String basePath); }
VolumeImpl implements Volume { boolean equivalentPaths(Path other) { return other.toUri().getPath().startsWith(basePath); } VolumeImpl(Path path, Configuration conf);  VolumeImpl(FileSystem fs, String basePath); @Override FileSystem getFileSystem(); @Override String getBasePath(); @Override Path prefixChild(Path p); @Override boolean isValidPath(Path p); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); @Override Path prefixChild(String p); }
VolumeImpl implements Volume { boolean equivalentPaths(Path other) { return other.toUri().getPath().startsWith(basePath); } VolumeImpl(Path path, Configuration conf);  VolumeImpl(FileSystem fs, String basePath); @Override FileSystem getFileSystem(); @Override String getBasePath(); @Override Path prefixChild(Path p); @Override boolean isValidPath(Path p); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); @Override Path prefixChild(String p);  }