diff --git a/pom.xml b/pom.xml index 7bb51424..960ed56d 100644 --- a/pom.xml +++ b/pom.xml @@ -153,21 +153,7 @@ -Xlint -XDcompilePolicy=simple - -Xplugin:ErrorProne - -Xep:CanIgnoreReturnValueSuggester:OFF - -Xep:DefaultCharset:OFF - -Xep:HidingField:OFF - -Xep:JavaUtilDate:OFF - -Xep:ProtectedMembersInFinalClass:OFF - - - - com.google.errorprone - error_prone_core - 2.16 - - @@ -294,7 +280,7 @@ - all + classes 1 -Xmx512m true @@ -375,10 +361,10 @@ UTF-8 11 - 2.5.0 + 2.6.0-SNAPSHOT 2.0.6 ${project.groupId}.shaded - 2.22.2 + 3.0.0-M8 @@ -479,7 +465,7 @@ assertj-core test - 1.7.1 + 3.23.1 org.eclipse.jetty @@ -522,7 +508,7 @@ org.testng testng - 6.8.21 + 7.5 test diff --git a/src/test/java/org/gaul/s3proxy/EncryptedBlobStoreLiveTest.java b/src/test/java/org/gaul/s3proxy/EncryptedBlobStoreLiveTest.java index da328a9d..724e6c9f 100644 --- a/src/test/java/org/gaul/s3proxy/EncryptedBlobStoreLiveTest.java +++ b/src/test/java/org/gaul/s3proxy/EncryptedBlobStoreLiveTest.java @@ -48,7 +48,7 @@ import org.jclouds.s3.domain.S3Object; import org.jclouds.s3.reference.S3Constants; import org.testng.SkipException; -import org.testng.annotations.AfterClass; +import org.testng.annotations.AfterSuite; import org.testng.annotations.Test; @SuppressWarnings("UnstableApiUsage") @@ -64,10 +64,11 @@ public final class EncryptedBlobStoreLiveTest extends S3ClientLiveTest { private S3Proxy s3Proxy; private BlobStoreContext context; - @AfterClass - public void tearDown() throws Exception { - s3Proxy.stop(); + @AfterSuite + @Override + public void destroyResources() throws Exception { context.close(); + s3Proxy.stop(); } @Override diff --git a/src/test/java/org/gaul/s3proxy/JcloudsBucketsLiveTest.java b/src/test/java/org/gaul/s3proxy/JcloudsBucketsLiveTest.java index fa22c0a7..376f79c0 100644 --- a/src/test/java/org/gaul/s3proxy/JcloudsBucketsLiveTest.java +++ b/src/test/java/org/gaul/s3proxy/JcloudsBucketsLiveTest.java @@ -32,7 +32,7 @@ import org.jclouds.s3.reference.S3Constants; import org.jclouds.s3.services.BucketsLiveTest; import org.testng.SkipException; -import org.testng.annotations.AfterClass; +import org.testng.annotations.AfterSuite; import org.testng.annotations.Test; @Test(testName = "JcloudsBucketsLiveTest") @@ -46,10 +46,11 @@ public final class JcloudsBucketsLiveTest extends BucketsLiveTest { private BlobStoreContext context; private String blobStoreType; - @AfterClass - public void tearDown() throws Exception { - s3Proxy.stop(); + @AfterSuite + @Override + public void destroyResources() throws Exception { context.close(); + s3Proxy.stop(); } @Override diff --git a/src/test/java/org/gaul/s3proxy/JcloudsS3BlobIntegrationLiveTest.java b/src/test/java/org/gaul/s3proxy/JcloudsS3BlobIntegrationLiveTest.java index d349cb5f..bc66827b 100644 --- a/src/test/java/org/gaul/s3proxy/JcloudsS3BlobIntegrationLiveTest.java +++ b/src/test/java/org/gaul/s3proxy/JcloudsS3BlobIntegrationLiveTest.java @@ -27,7 +27,7 @@ import org.jclouds.s3.blobstore.integration.S3BlobIntegrationLiveTest; import org.jclouds.s3.reference.S3Constants; import org.testng.SkipException; -import org.testng.annotations.AfterClass; +import org.testng.annotations.AfterSuite; import org.testng.annotations.Test; @Test(testName = "JcloudsS3BlobIntegrationLiveTest") @@ -42,10 +42,11 @@ public final class JcloudsS3BlobIntegrationLiveTest private BlobStoreContext context; private String blobStoreType; - @AfterClass - public void tearDown() throws Exception { - s3Proxy.stop(); + @AfterSuite + @Override + public void destroyResources() throws Exception { context.close(); + s3Proxy.stop(); } @Override diff --git a/src/test/java/org/gaul/s3proxy/JcloudsS3BlobSignerLiveTest.java b/src/test/java/org/gaul/s3proxy/JcloudsS3BlobSignerLiveTest.java index 23e49e58..6f333b38 100644 --- a/src/test/java/org/gaul/s3proxy/JcloudsS3BlobSignerLiveTest.java +++ b/src/test/java/org/gaul/s3proxy/JcloudsS3BlobSignerLiveTest.java @@ -25,7 +25,7 @@ import org.jclouds.blobstore.BlobStoreContext; import org.jclouds.s3.blobstore.integration.S3BlobSignerLiveTest; import org.jclouds.s3.reference.S3Constants; -import org.testng.annotations.AfterClass; +import org.testng.annotations.AfterSuite; import org.testng.annotations.Test; @Test(testName = "JcloudsS3BlobSignerLiveTest") @@ -38,10 +38,11 @@ public final class JcloudsS3BlobSignerLiveTest extends S3BlobSignerLiveTest { private S3Proxy s3Proxy; private BlobStoreContext context; - @AfterClass - public void tearDown() throws Exception { - s3Proxy.stop(); + @AfterSuite + @Override + public void destroyResources() throws Exception { context.close(); + s3Proxy.stop(); } @Override diff --git a/src/test/java/org/gaul/s3proxy/JcloudsS3ClientLiveTest.java b/src/test/java/org/gaul/s3proxy/JcloudsS3ClientLiveTest.java index 3602f1cb..53bf919d 100644 --- a/src/test/java/org/gaul/s3proxy/JcloudsS3ClientLiveTest.java +++ b/src/test/java/org/gaul/s3proxy/JcloudsS3ClientLiveTest.java @@ -36,7 +36,7 @@ import org.jclouds.s3.domain.S3Object; import org.jclouds.s3.reference.S3Constants; import org.testng.SkipException; -import org.testng.annotations.AfterClass; +import org.testng.annotations.AfterSuite; import org.testng.annotations.Test; @Test(testName = "JcloudsS3ClientLiveTest") @@ -50,10 +50,11 @@ public final class JcloudsS3ClientLiveTest extends S3ClientLiveTest { private BlobStoreContext context; private String blobStoreType; - @AfterClass - public void tearDown() throws Exception { - s3Proxy.stop(); + @AfterSuite + @Override + public void destroyResources() throws Exception { context.close(); + s3Proxy.stop(); } @Override diff --git a/src/test/java/org/gaul/s3proxy/JcloudsS3ContainerIntegrationLiveTest.java b/src/test/java/org/gaul/s3proxy/JcloudsS3ContainerIntegrationLiveTest.java index 6d060b23..a19168ce 100644 --- a/src/test/java/org/gaul/s3proxy/JcloudsS3ContainerIntegrationLiveTest.java +++ b/src/test/java/org/gaul/s3proxy/JcloudsS3ContainerIntegrationLiveTest.java @@ -26,7 +26,7 @@ import org.jclouds.s3.blobstore.integration.S3ContainerIntegrationLiveTest; import org.jclouds.s3.reference.S3Constants; import org.testng.SkipException; -import org.testng.annotations.AfterClass; +import org.testng.annotations.AfterSuite; import org.testng.annotations.Test; @Test(testName = "JcloudsS3ContainerIntegrationLiveTest") @@ -41,10 +41,11 @@ public final class JcloudsS3ContainerIntegrationLiveTest private BlobStoreContext context; private String blobStoreType; - @AfterClass - public void tearDown() throws Exception { - s3Proxy.stop(); + @AfterSuite + @Override + public void destroyResources() throws Exception { context.close(); + s3Proxy.stop(); } @Override