@Test public void testFile() { final S3Session session = new S3Session(new Host(new S3Protocol(), "h")); assertFalse(new S3TouchFeature(session).isSupported(new Path("/", EnumSet.of(Path.Type.volume)), StringUtils.EMPTY)); assertTrue(new S3TouchFeature(session).isSupported(new Path(new Path("/", EnumSet.of(Path.Type.volume)), "/container", EnumSet.of(Path.Type.volume)), StringUtils.EMPTY)); }
@Override public boolean isSupported(final Path workdir, final String filename) { return !workdir.isRoot(); }
S3TouchFeature implements Touch<StorageObject> { @Override public boolean isSupported(final Path workdir, final String filename) { return !workdir.isRoot(); } }
S3TouchFeature implements Touch<StorageObject> { @Override public boolean isSupported(final Path workdir, final String filename) { return !workdir.isRoot(); } S3TouchFeature(final S3Session session); }
S3TouchFeature implements Touch<StorageObject> { @Override public boolean isSupported(final Path workdir, final String filename) { return !workdir.isRoot(); } S3TouchFeature(final S3Session session); @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); }
S3TouchFeature implements Touch<StorageObject> { @Override public boolean isSupported(final Path workdir, final String filename) { return !workdir.isRoot(); } S3TouchFeature(final S3Session session); @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);  }