Skip to content

Commit 4afdf9f

Browse files
John Viegasjoviegas
John Viegas
authored andcommitted
Delete Test bucket after completion HeadObjectIntegrationTest
1 parent ec332a9 commit 4afdf9f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

services/s3/src/it/java/software/amazon/awssdk/services/s3/HeadObjectIntegrationTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
import java.io.IOException;
2323
import java.nio.charset.StandardCharsets;
2424
import java.util.zip.GZIPOutputStream;
25+
26+
import org.junit.AfterClass;
2527
import org.junit.BeforeClass;
2628
import org.junit.Test;
2729
import software.amazon.awssdk.core.sync.RequestBody;
@@ -61,4 +63,9 @@ public void syncClientSupportsGzippedObjects() {
6163
HeadObjectResponse response = s3.headObject(r -> r.bucket(BUCKET).key(GZIPPED_KEY));
6264
assertThat(response.contentEncoding()).isEqualTo("gzip");
6365
}
66+
67+
@AfterClass
68+
public static void cleanup() {
69+
deleteBucketAndAllContents(BUCKET);
70+
}
6471
}

0 commit comments

Comments
 (0)