From 533d86f5eb16ebc3b0ab05d28ea4d58426f6b75e Mon Sep 17 00:00:00 2001 From: Andrus Adamchik Date: Thu, 23 Nov 2023 09:27:31 -0500 Subject: [PATCH] stop using "test" prefix in test method names --- bootique-aws-s3/src/test/java/io/bootique/aws/s3/AwsS3IT.java | 2 +- .../test/java/io/bootique/aws/s3/AwsS3ModuleProviderTest.java | 2 +- .../bootique/aws/secrets/AwsSecretsConfigurationLoaderIT.java | 2 +- .../java/io/bootique/aws/secrets/AwsSecretsManagerIT.java | 2 +- .../io/bootique/aws/secrets/AwsSecretsModuleProviderTest.java | 2 +- .../transformers/RDSToHikariDataSourceTransformerIT.java | 2 +- .../src/test/java/io/bootique/aws/AwsModuleProviderTest.java | 2 +- .../src/test/java/io/bootique/aws2/junit5/AwsServiceTest.java | 2 +- .../src/test/java/io/bootique/aws2/junit5/AwsTesterIT.java | 2 +- .../bootique/aws2/s3/junit5/S3Tester_NoTestHierarchyIT.java | 2 +- .../src/test/java/io/bootique/aws2/s3/AwsS3IT.java | 2 +- .../java/io/bootique/aws2/s3/AwsS3ModuleProviderTest.java | 2 +- .../aws2/secrets/AwsSecretsConfigurationLoaderIT.java | 2 +- .../java/io/bootique/aws2/secrets/AwsSecretsManagerIT.java | 2 +- .../bootique/aws2/secrets/AwsSecretsModuleProviderTest.java | 2 +- .../transformers/RDSToHikariDataSourceTransformerIT.java | 2 +- .../src/test/java/io/bootique/aws2/AwsModuleProviderTest.java | 4 ++-- 17 files changed, 18 insertions(+), 18 deletions(-) diff --git a/bootique-aws-s3/src/test/java/io/bootique/aws/s3/AwsS3IT.java b/bootique-aws-s3/src/test/java/io/bootique/aws/s3/AwsS3IT.java index 7056f6b..89cec24 100644 --- a/bootique-aws-s3/src/test/java/io/bootique/aws/s3/AwsS3IT.java +++ b/bootique-aws-s3/src/test/java/io/bootique/aws/s3/AwsS3IT.java @@ -61,7 +61,7 @@ public class AwsS3IT { .createRuntime(); @Test - public void testBucketOperations() throws IOException { + public void bucketOperations() throws IOException { AmazonS3 s3 = app.getInstance(AmazonS3.class); // create bucket diff --git a/bootique-aws-s3/src/test/java/io/bootique/aws/s3/AwsS3ModuleProviderTest.java b/bootique-aws-s3/src/test/java/io/bootique/aws/s3/AwsS3ModuleProviderTest.java index 3fda8e8..fb75968 100644 --- a/bootique-aws-s3/src/test/java/io/bootique/aws/s3/AwsS3ModuleProviderTest.java +++ b/bootique-aws-s3/src/test/java/io/bootique/aws/s3/AwsS3ModuleProviderTest.java @@ -26,7 +26,7 @@ public class AwsS3ModuleProviderTest { @Test - public void testAutoLoading() { + public void autoLoading() { BQModuleProviderChecker.testAutoLoadable(AwsS3ModuleProvider.class); } } diff --git a/bootique-aws-secrets/src/test/java/io/bootique/aws/secrets/AwsSecretsConfigurationLoaderIT.java b/bootique-aws-secrets/src/test/java/io/bootique/aws/secrets/AwsSecretsConfigurationLoaderIT.java index e0ed655..95b9c0a 100644 --- a/bootique-aws-secrets/src/test/java/io/bootique/aws/secrets/AwsSecretsConfigurationLoaderIT.java +++ b/bootique-aws-secrets/src/test/java/io/bootique/aws/secrets/AwsSecretsConfigurationLoaderIT.java @@ -101,7 +101,7 @@ static void loadSecrets() { .createRuntime(); @Test - public void testConfigMerged() { + public void configMerged() { UserProfile a = app.getInstance(ConfigurationFactory.class).config(UserProfile.class, "a"); assertEquals("a_uname", a.user); diff --git a/bootique-aws-secrets/src/test/java/io/bootique/aws/secrets/AwsSecretsManagerIT.java b/bootique-aws-secrets/src/test/java/io/bootique/aws/secrets/AwsSecretsManagerIT.java index ef461ab..90c1130 100644 --- a/bootique-aws-secrets/src/test/java/io/bootique/aws/secrets/AwsSecretsManagerIT.java +++ b/bootique-aws-secrets/src/test/java/io/bootique/aws/secrets/AwsSecretsManagerIT.java @@ -59,7 +59,7 @@ public class AwsSecretsManagerIT { .createRuntime(); @Test - public void testSecrets() { + public void secrets() { String s1 = "{\"a\":\"top secret\"}"; String s2 = "{\"a\":\"top secret updated\"}"; diff --git a/bootique-aws-secrets/src/test/java/io/bootique/aws/secrets/AwsSecretsModuleProviderTest.java b/bootique-aws-secrets/src/test/java/io/bootique/aws/secrets/AwsSecretsModuleProviderTest.java index a70986e..141beb2 100644 --- a/bootique-aws-secrets/src/test/java/io/bootique/aws/secrets/AwsSecretsModuleProviderTest.java +++ b/bootique-aws-secrets/src/test/java/io/bootique/aws/secrets/AwsSecretsModuleProviderTest.java @@ -24,7 +24,7 @@ public class AwsSecretsModuleProviderTest { @Test - public void testAutoLoading() { + public void autoLoading() { BQModuleProviderChecker.testAutoLoadable(AwsSecretsModuleProvider.class); } } diff --git a/bootique-aws-secrets/src/test/java/io/bootique/aws/secrets/transformers/RDSToHikariDataSourceTransformerIT.java b/bootique-aws-secrets/src/test/java/io/bootique/aws/secrets/transformers/RDSToHikariDataSourceTransformerIT.java index bdb22a1..6e603e2 100644 --- a/bootique-aws-secrets/src/test/java/io/bootique/aws/secrets/transformers/RDSToHikariDataSourceTransformerIT.java +++ b/bootique-aws-secrets/src/test/java/io/bootique/aws/secrets/transformers/RDSToHikariDataSourceTransformerIT.java @@ -96,7 +96,7 @@ static void loadSecrets() { .createRuntime(); @Test - public void testRdsConfigTranslatedAndMerged() { + public void rdsConfigTranslatedAndMerged() { HikariConfig config = app.getInstance(ConfigurationFactory.class) .config(TestHikariFactory.class, "a") diff --git a/bootique-aws/src/test/java/io/bootique/aws/AwsModuleProviderTest.java b/bootique-aws/src/test/java/io/bootique/aws/AwsModuleProviderTest.java index c9f652c..5ba829c 100644 --- a/bootique-aws/src/test/java/io/bootique/aws/AwsModuleProviderTest.java +++ b/bootique-aws/src/test/java/io/bootique/aws/AwsModuleProviderTest.java @@ -25,7 +25,7 @@ public class AwsModuleProviderTest { @Test - public void testAutoLoading() { + public void autoLoading() { BQModuleProviderChecker.testAutoLoadable(AwsModuleProvider.class); } } diff --git a/bootique-aws2-junit5/src/test/java/io/bootique/aws2/junit5/AwsServiceTest.java b/bootique-aws2-junit5/src/test/java/io/bootique/aws2/junit5/AwsServiceTest.java index 36026ff..4e9d071 100644 --- a/bootique-aws2-junit5/src/test/java/io/bootique/aws2/junit5/AwsServiceTest.java +++ b/bootique-aws2-junit5/src/test/java/io/bootique/aws2/junit5/AwsServiceTest.java @@ -27,7 +27,7 @@ public class AwsServiceTest { @Test - public void testMatchesTestcontainersServiceList() { + public void matchesTestcontainersServiceList() { assertEquals(AwsService.values().length, LocalStackContainer.Service.values().length); for(AwsService s : AwsService.values()) { assertDoesNotThrow(() -> s.toLocalstackService()); diff --git a/bootique-aws2-junit5/src/test/java/io/bootique/aws2/junit5/AwsTesterIT.java b/bootique-aws2-junit5/src/test/java/io/bootique/aws2/junit5/AwsTesterIT.java index f71f899..1989dfe 100644 --- a/bootique-aws2-junit5/src/test/java/io/bootique/aws2/junit5/AwsTesterIT.java +++ b/bootique-aws2-junit5/src/test/java/io/bootique/aws2/junit5/AwsTesterIT.java @@ -44,7 +44,7 @@ public class AwsTesterIT { .createRuntime(); @Test - public void testS3() throws IOException { + public void s3() throws IOException { S3Client s3 = S3Client .builder() .endpointOverride(tester.getEndpointOverride()) diff --git a/bootique-aws2-s3-junit5/src/test/java/io/bootique/aws2/s3/junit5/S3Tester_NoTestHierarchyIT.java b/bootique-aws2-s3-junit5/src/test/java/io/bootique/aws2/s3/junit5/S3Tester_NoTestHierarchyIT.java index fb23cdb..ad46535 100644 --- a/bootique-aws2-s3-junit5/src/test/java/io/bootique/aws2/s3/junit5/S3Tester_NoTestHierarchyIT.java +++ b/bootique-aws2-s3-junit5/src/test/java/io/bootique/aws2/s3/junit5/S3Tester_NoTestHierarchyIT.java @@ -56,7 +56,7 @@ public class S3Tester_NoTestHierarchyIT { .createRuntime(); @Test - public void testS3() throws IOException { + public void s3() throws IOException { S3Client s3 = app.getInstance(S3ClientFactory.class).client(); s3.putObject(b -> b.bucket("bt1").key("b1k1"), RequestBody.fromBytes("b1v1".getBytes())); diff --git a/bootique-aws2-s3/src/test/java/io/bootique/aws2/s3/AwsS3IT.java b/bootique-aws2-s3/src/test/java/io/bootique/aws2/s3/AwsS3IT.java index 04b4269..0fe3379 100644 --- a/bootique-aws2-s3/src/test/java/io/bootique/aws2/s3/AwsS3IT.java +++ b/bootique-aws2-s3/src/test/java/io/bootique/aws2/s3/AwsS3IT.java @@ -62,7 +62,7 @@ public class AwsS3IT { .createRuntime(); @Test - public void testBucketOperations() throws IOException { + public void bucketOperations() throws IOException { S3Client s3 = app.getInstance(S3ClientFactory.class).client(); // create bucket diff --git a/bootique-aws2-s3/src/test/java/io/bootique/aws2/s3/AwsS3ModuleProviderTest.java b/bootique-aws2-s3/src/test/java/io/bootique/aws2/s3/AwsS3ModuleProviderTest.java index 52e8a6b..7e536dc 100644 --- a/bootique-aws2-s3/src/test/java/io/bootique/aws2/s3/AwsS3ModuleProviderTest.java +++ b/bootique-aws2-s3/src/test/java/io/bootique/aws2/s3/AwsS3ModuleProviderTest.java @@ -26,7 +26,7 @@ public class AwsS3ModuleProviderTest { @Test - public void testAutoLoading() { + public void autoLoading() { BQModuleProviderChecker.testAutoLoadable(AwsS3ModuleProvider.class); } } diff --git a/bootique-aws2-secrets/src/test/java/io/bootique/aws2/secrets/AwsSecretsConfigurationLoaderIT.java b/bootique-aws2-secrets/src/test/java/io/bootique/aws2/secrets/AwsSecretsConfigurationLoaderIT.java index 1ffc4f0..6cff23c 100644 --- a/bootique-aws2-secrets/src/test/java/io/bootique/aws2/secrets/AwsSecretsConfigurationLoaderIT.java +++ b/bootique-aws2-secrets/src/test/java/io/bootique/aws2/secrets/AwsSecretsConfigurationLoaderIT.java @@ -98,7 +98,7 @@ static void loadSecrets() { .createRuntime(); @Test - public void testConfigMerged() { + public void configMerged() { UserProfile a = app.getInstance(ConfigurationFactory.class).config(UserProfile.class, "a"); assertEquals("a_uname", a.user); diff --git a/bootique-aws2-secrets/src/test/java/io/bootique/aws2/secrets/AwsSecretsManagerIT.java b/bootique-aws2-secrets/src/test/java/io/bootique/aws2/secrets/AwsSecretsManagerIT.java index 12df9e8..95b806a 100644 --- a/bootique-aws2-secrets/src/test/java/io/bootique/aws2/secrets/AwsSecretsManagerIT.java +++ b/bootique-aws2-secrets/src/test/java/io/bootique/aws2/secrets/AwsSecretsManagerIT.java @@ -56,7 +56,7 @@ public class AwsSecretsManagerIT { .createRuntime(); @Test - public void testSecrets() { + public void secrets() { String s1 = "{\"a\":\"top secret\"}"; String s2 = "{\"a\":\"top secret updated\"}"; diff --git a/bootique-aws2-secrets/src/test/java/io/bootique/aws2/secrets/AwsSecretsModuleProviderTest.java b/bootique-aws2-secrets/src/test/java/io/bootique/aws2/secrets/AwsSecretsModuleProviderTest.java index 68dbc73..81ee9fa 100644 --- a/bootique-aws2-secrets/src/test/java/io/bootique/aws2/secrets/AwsSecretsModuleProviderTest.java +++ b/bootique-aws2-secrets/src/test/java/io/bootique/aws2/secrets/AwsSecretsModuleProviderTest.java @@ -24,7 +24,7 @@ public class AwsSecretsModuleProviderTest { @Test - public void testAutoLoading() { + public void autoLoading() { BQModuleProviderChecker.testAutoLoadable(AwsSecretsModuleProvider.class); } } diff --git a/bootique-aws2-secrets/src/test/java/io/bootique/aws2/secrets/transformers/RDSToHikariDataSourceTransformerIT.java b/bootique-aws2-secrets/src/test/java/io/bootique/aws2/secrets/transformers/RDSToHikariDataSourceTransformerIT.java index aa456b6..55c4cf6 100644 --- a/bootique-aws2-secrets/src/test/java/io/bootique/aws2/secrets/transformers/RDSToHikariDataSourceTransformerIT.java +++ b/bootique-aws2-secrets/src/test/java/io/bootique/aws2/secrets/transformers/RDSToHikariDataSourceTransformerIT.java @@ -90,7 +90,7 @@ static void loadSecrets() { .createRuntime(); @Test - public void testRdsConfigTranslatedAndMerged() { + public void rdsConfigTranslatedAndMerged() { HikariConfig config = app.getInstance(ConfigurationFactory.class) .config(TestHikariFactory.class, "a") diff --git a/bootique-aws2/src/test/java/io/bootique/aws2/AwsModuleProviderTest.java b/bootique-aws2/src/test/java/io/bootique/aws2/AwsModuleProviderTest.java index 2897d2c..164fa15 100644 --- a/bootique-aws2/src/test/java/io/bootique/aws2/AwsModuleProviderTest.java +++ b/bootique-aws2/src/test/java/io/bootique/aws2/AwsModuleProviderTest.java @@ -25,12 +25,12 @@ public class AwsModuleProviderTest { @Test - public void testAutoLoading() { + public void autoLoading() { BQModuleProviderChecker.testAutoLoadable(AwsModuleProvider.class); } @Test - public void testConfigLoad() { + public void configLoad() { BQModuleProviderChecker.testMetadata(AwsModuleProvider.class); } }