@Test void deleteObject() { amazonS3.putObject(bucket, key1, content); s3Client.deleteObject(bucket, key1); assertThat(amazonS3.doesObjectExist(bucket, key1)).isFalse(); }
void deleteObject(String bucket, String key) { if (dryRunEnabled) { log.info("Dry run - deleting: \"{}/{}\"", bucket, key); } else { log.info("Deleting \"{}/{}\"", bucket, key); amazonS3.deleteObject(bucket, key); } }
S3Client { void deleteObject(String bucket, String key) { if (dryRunEnabled) { log.info("Dry run - deleting: \"{}/{}\"", bucket, key); } else { log.info("Deleting \"{}/{}\"", bucket, key); amazonS3.deleteObject(bucket, key); } } }
S3Client { void deleteObject(String bucket, String key) { if (dryRunEnabled) { log.info("Dry run - deleting: \"{}/{}\"", bucket, key); } else { log.info("Deleting \"{}/{}\"", bucket, key); amazonS3.deleteObject(bucket, key); } } S3Client(AmazonS3 amazonS3, boolean dryRunEnabled); }
S3Client { void deleteObject(String bucket, String key) { if (dryRunEnabled) { log.info("Dry run - deleting: \"{}/{}\"", bucket, key); } else { log.info("Deleting \"{}/{}\"", bucket, key); amazonS3.deleteObject(bucket, key); } } S3Client(AmazonS3 amazonS3, boolean dryRunEnabled);  }
S3Client { void deleteObject(String bucket, String key) { if (dryRunEnabled) { log.info("Dry run - deleting: \"{}/{}\"", bucket, key); } else { log.info("Deleting \"{}/{}\"", bucket, key); amazonS3.deleteObject(bucket, key); } } S3Client(AmazonS3 amazonS3, boolean dryRunEnabled);   }