@Test public void testSupported() { assertFalse(new SwiftTouchFeature(session, new SwiftRegionService(session)).isSupported(new Path("/", EnumSet.of(Path.Type.directory, Path.Type.volume)), StringUtils.EMPTY)); assertTrue(new SwiftTouchFeature(session, new SwiftRegionService(session)).isSupported(new Path("/container", EnumSet.of(Path.Type.directory, Path.Type.volume)), StringUtils.EMPTY)); }
@Override public boolean isSupported(final Path workdir, final String filename) { return !workdir.isRoot(); }
SwiftTouchFeature implements Touch<StorageObject> { @Override public boolean isSupported(final Path workdir, final String filename) { return !workdir.isRoot(); } }
SwiftTouchFeature implements Touch<StorageObject> { @Override public boolean isSupported(final Path workdir, final String filename) { return !workdir.isRoot(); } SwiftTouchFeature(final SwiftSession session, final SwiftRegionService regionService); }
SwiftTouchFeature implements Touch<StorageObject> { @Override public boolean isSupported(final Path workdir, final String filename) { return !workdir.isRoot(); } SwiftTouchFeature(final SwiftSession session, final SwiftRegionService regionService); @Override Path touch(final Path file, final TransferStatus status); @Override boolean isSupported(final Path workdir, final String filename); @Override Touch<StorageObject> withWriter(final Write<StorageObject> writer); }
SwiftTouchFeature implements Touch<StorageObject> { @Override public boolean isSupported(final Path workdir, final String filename) { return !workdir.isRoot(); } SwiftTouchFeature(final SwiftSession session, final SwiftRegionService regionService); @Override Path touch(final Path file, final TransferStatus status); @Override boolean isSupported(final Path workdir, final String filename); @Override Touch<StorageObject> withWriter(final Write<StorageObject> writer);  }