diff --git a/bootique-jersey-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/JerseyBeanValidationModuleProviderTest.java b/bootique-jersey-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/JerseyBeanValidationModuleProviderTest.java index 0b69acb..315f67f 100644 --- a/bootique-jersey-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/JerseyBeanValidationModuleProviderTest.java +++ b/bootique-jersey-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/JerseyBeanValidationModuleProviderTest.java @@ -24,7 +24,7 @@ public class JerseyBeanValidationModuleProviderTest { @Test - public void testAutoLoadable() { + public void autoLoadable() { BQModuleProviderChecker.testAutoLoadable(JerseyBeanValidationModuleProvider.class); } } diff --git a/bootique-jersey-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/ValidationIT.java b/bootique-jersey-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/ValidationIT.java index 9314f13..a5a94ae 100644 --- a/bootique-jersey-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/ValidationIT.java +++ b/bootique-jersey-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/ValidationIT.java @@ -64,7 +64,7 @@ private static Consumer assertTrimmed(String expected) { } @Test - public void testParamValidation_NotNull() { + public void paramValidation_NotNull() { Response ok = jetty.getTarget().path("notNull").queryParam("q", "A").request(MediaType.TEXT_PLAIN).get(); JettyTester.assertOk(ok).assertContent("_A_"); @@ -74,7 +74,7 @@ public void testParamValidation_NotNull() { } @Test - public void testParamValidation_Range() { + public void paramValidation_Range() { Response ok = jetty.getTarget().path("range").queryParam("q", "3").request(MediaType.TEXT_PLAIN).get(); JettyTester.assertOk(ok).assertContent("_3_"); @@ -87,7 +87,7 @@ public void testParamValidation_Range() { } @Test - public void testParamValidation_ListSize() { + public void paramValidation_ListSize() { Response ok = jetty.getTarget().path("size") .queryParam("q", "3") .queryParam("q", "1") @@ -107,7 +107,7 @@ public void testParamValidation_ListSize() { } @Test - public void testParamValidation_Valid() { + public void paramValidation_Valid() { Response ok = jetty.getTarget().path("valid").queryParam("q", "a1").request(MediaType.TEXT_PLAIN).get(); JettyTester.assertOk(ok).assertContent("_{a1}_"); @@ -120,7 +120,7 @@ public void testParamValidation_Valid() { } @Test - public void testParamValidation_Custom() { + public void paramValidation_Custom() { Response ok = jetty.getTarget().path("custom").queryParam("q", "a1").request(MediaType.TEXT_PLAIN).get(); JettyTester.assertOk(ok).assertContent("_a1_"); diff --git a/bootique-jersey-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/ValidationNoErrorsInResponseIT.java b/bootique-jersey-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/ValidationNoErrorsInResponseIT.java index e83d752..619a78b 100644 --- a/bootique-jersey-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/ValidationNoErrorsInResponseIT.java +++ b/bootique-jersey-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/ValidationNoErrorsInResponseIT.java @@ -58,7 +58,7 @@ private static Consumer assertTrimmed(String expected) { } @Test - public void testParamValidation_NotNull() { + public void paramValidation_NotNull() { Response ok = jetty.getTarget().path("notNull").queryParam("q", "A").request(MediaType.TEXT_PLAIN).get(); JettyTester.assertOk(ok).assertContent("_A_"); diff --git a/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClientIT.java b/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClientIT.java index 2cdf249..454c5f2 100644 --- a/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClientIT.java +++ b/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClientIT.java @@ -83,7 +83,7 @@ public void resetClient() { } @Test - public void testMetrics() { + public void metrics() { // fault filter to init metrics client.getInstance(RequestTimer.class); MetricRegistry metricRegistry = client.getInstance(MetricRegistry.class); @@ -92,7 +92,7 @@ public void testMetrics() { } @Test - public void testTimerInvoked() { + public void timerInvoked() { HttpClientFactory factory = client.getInstance(HttpClientFactory.class); MetricRegistry metrics = client.getInstance(MetricRegistry.class); @@ -110,7 +110,7 @@ public void testTimerInvoked() { } @Test - public void testTimer_ConnectionError() { + public void timer_ConnectionError() { Client jaxrsClient = client.getInstance(HttpClientFactory.class).newClient(); MetricRegistry metrics = client.getInstance(MetricRegistry.class); @@ -131,7 +131,7 @@ public void testTimer_ConnectionError() { } @Test - public void testTimer_ServerErrors() { + public void timer_ServerErrors() { Client jaxrsClient = client.getInstance(HttpClientFactory.class).newClient(); MetricRegistry metrics = client.getInstance(MetricRegistry.class); diff --git a/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClientMDCIT.java b/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClientMDCIT.java index f3f0618..90add18 100644 --- a/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClientMDCIT.java +++ b/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClientMDCIT.java @@ -73,7 +73,7 @@ void clearMDC() { } @Test - public void testNoMDCRx() { + public void noMDCRx() { HttpClientFactory factory = clientApp.getInstance(HttpClientFactory.class); @@ -94,7 +94,7 @@ public void testNoMDCRx() { } @Test - public void testMDCRx() { + public void mDCRx() { HttpClientFactory factory = clientApp.getInstance(HttpClientFactory.class); @@ -115,7 +115,7 @@ public void testMDCRx() { } @Test - public void testMDCRxNestedAsync() { + public void mDCRxNestedAsync() { HttpClientFactory factory = clientApp.getInstance(HttpClientFactory.class); @@ -135,7 +135,7 @@ public void testMDCRxNestedAsync() { } @Test - public void testMDCRxNestedSync() { + public void mDCRxNestedSync() { HttpClientFactory factory = clientApp.getInstance(HttpClientFactory.class); @@ -155,7 +155,7 @@ public void testMDCRxNestedSync() { } @Test - public void testMDCRxParallel() throws ExecutionException, InterruptedException, TimeoutException { + public void mDCRxParallel() throws ExecutionException, InterruptedException, TimeoutException { HttpClientFactory factory = clientApp.getInstance(HttpClientFactory.class); diff --git a/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClient_ThresholdsIT.java b/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClient_ThresholdsIT.java index 253b8c5..45188f5 100644 --- a/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClient_ThresholdsIT.java +++ b/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClient_ThresholdsIT.java @@ -86,7 +86,7 @@ private HealthCheckOutcome tickAndRunCheck(BQRuntime client, String checkName) t } @Test - public void testRequestsPerMin() throws InterruptedException { + public void requestsPerMin() throws InterruptedException { BQRuntime client = createClient(); WebTarget target = createTarget(client); diff --git a/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedHttpClientFactoryFactoryTest.java b/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedHttpClientFactoryFactoryTest.java index 9a66d15..b6d45cb 100644 --- a/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedHttpClientFactoryFactoryTest.java +++ b/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedHttpClientFactoryFactoryTest.java @@ -35,7 +35,7 @@ public class InstrumentedHttpClientFactoryFactoryTest { private final Injector mockInjector = mock(Injector.class); @Test - public void testCreateClientFactory_AsyncThreadPool() { + public void createClientFactory_AsyncThreadPool() { Client client = new InstrumentedHttpClientFactoryFactory().createClientFactory(mockInjector, Set.of()).newClient(); diff --git a/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/JerseyClientInstrumentedModuleProviderTest.java b/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/JerseyClientInstrumentedModuleProviderTest.java index 46478a5..9001bb2 100644 --- a/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/JerseyClientInstrumentedModuleProviderTest.java +++ b/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/JerseyClientInstrumentedModuleProviderTest.java @@ -33,12 +33,12 @@ public class JerseyClientInstrumentedModuleProviderTest { final BQTestFactory testFactory = new BQTestFactory(); @Test - public void testAutoLoadable() { + public void autoLoadable() { BQModuleProviderChecker.testAutoLoadable(JerseyClientInstrumentedModuleProvider.class); } @Test - public void testModuleDeclaresDependencies() { + public void moduleDeclaresDependencies() { final BQRuntime bqRuntime = testFactory.app().moduleProvider(new JerseyClientInstrumentedModuleProvider()).createRuntime(); BQRuntimeChecker.testModulesLoaded(bqRuntime, JerseyClientModule.class, diff --git a/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/healthcheck/HttpHealthCheckIT.java b/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/healthcheck/HttpHealthCheckIT.java index 5941dae..3073385 100644 --- a/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/healthcheck/HttpHealthCheckIT.java +++ b/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/healthcheck/HttpHealthCheckIT.java @@ -63,7 +63,7 @@ private WebTarget target(String path) { } @Test - public void testSafeCheck_NoConnection() { + public void safeCheck_NoConnection() { // access a port that is not in use int openPort = PortFinder.findAvailablePort("127.0.0.1"); WebTarget target = ClientBuilder.newClient().target("http://127.0.0.1:" + openPort); @@ -75,7 +75,7 @@ public void testSafeCheck_NoConnection() { } @Test - public void testSafeCheck_ViaGet_TempRedirect() { + public void safeCheck_ViaGet_TempRedirect() { WebTarget target = target("moved"); HealthCheckOutcome outcome = HttpHealthCheck.viaGET(target).safeCheck(); assertEquals(HealthCheckStatus.OK, outcome.getStatus(), outcome.toString()); @@ -83,7 +83,7 @@ public void testSafeCheck_ViaGet_TempRedirect() { } @Test - public void testSafeCheck_ViaGet_TempRedirect_Overwritten() { + public void safeCheck_ViaGet_TempRedirect_Overwritten() { // testing that while the initial target is setup to not follow redirects, health check still does. @@ -96,7 +96,7 @@ public void testSafeCheck_ViaGet_TempRedirect_Overwritten() { } @Test - public void testSafeCheck_ViaHead_NotFound() { + public void safeCheck_ViaHead_NotFound() { WebTarget target = target("no_such_thing"); HealthCheckOutcome outcome = HttpHealthCheck.viaHEAD(target).safeCheck(); assertEquals(HealthCheckStatus.WARNING, outcome.getStatus()); @@ -104,7 +104,7 @@ public void testSafeCheck_ViaHead_NotFound() { } @Test - public void testSafeCheck_ViaGet_ServerError() { + public void safeCheck_ViaGet_ServerError() { WebTarget target = target("get500"); HealthCheckOutcome outcome = HttpHealthCheck.viaHEAD(target).safeCheck(); assertEquals(HealthCheckStatus.CRITICAL, outcome.getStatus()); @@ -112,14 +112,14 @@ public void testSafeCheck_ViaGet_ServerError() { } @Test - public void testSafeCheck_ViaGet() { + public void safeCheck_ViaGet() { WebTarget target = target("get"); HealthCheckOutcome outcome = HttpHealthCheck.viaGET(target).safeCheck(); assertEquals(HealthCheckStatus.OK, outcome.getStatus(), outcome.toString()); } @Test - public void testSafeCheck_ViaHead() { + public void safeCheck_ViaHead() { // note that we don't need an explicit OPTIONS endpoint ... // Jersey server must provide an implicit behavior for a valid resource @@ -129,7 +129,7 @@ public void testSafeCheck_ViaHead() { } @Test - public void testSafeCheck_ViaOptions() { + public void safeCheck_ViaOptions() { // note that we don't need an explicit HEAD endpoint ... // Jersey server must provide an implicit behavior for a valid resource WebTarget target = target("get"); diff --git a/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/healthcheck/RangeHealthCheckTest.java b/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/healthcheck/RangeHealthCheckTest.java index 8eb71bc..f63b391 100644 --- a/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/healthcheck/RangeHealthCheckTest.java +++ b/bootique-jersey-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/healthcheck/RangeHealthCheckTest.java @@ -38,7 +38,7 @@ public void before() { } @Test - public void testRange_1() { + public void range_1() { Timer timer = registry.timer(RequestTimer.TIMER_NAME); Mockito.when(timer.getOneMinuteRate()).thenReturn(0.009); @@ -49,7 +49,7 @@ public void testRange_1() { @Test - public void testRange_2() { + public void range_2() { Timer timer = registry.timer(RequestTimer.TIMER_NAME); Mockito.when(timer.getOneMinuteRate()).thenReturn(0.03); @@ -59,7 +59,7 @@ public void testRange_2() { } @Test - public void testRange_3() { + public void range_3() { Timer timer = registry.timer(RequestTimer.TIMER_NAME); Mockito.when(timer.getOneMinuteRate()).thenReturn(0.06); diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/DefaultHttpClientFactoryTest.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/DefaultHttpClientFactoryTest.java index d65e02e..19ab7a6 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/DefaultHttpClientFactoryTest.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/DefaultHttpClientFactoryTest.java @@ -38,7 +38,7 @@ public class DefaultHttpClientFactoryTest { private ClientRequestFilter mockAuth2 = mock(ClientRequestFilter.class); @Test - public void testNewClient() { + public void newClient() { config.property("x", "y"); @@ -50,7 +50,7 @@ public void testNewClient() { } @Test - public void testNewClient_NewInstanceEveryTime() { + public void newClient_NewInstanceEveryTime() { DefaultHttpClientFactory factory = new DefaultHttpClientFactory( config, @@ -63,7 +63,7 @@ public void testNewClient_NewInstanceEveryTime() { } @Test - public void testNewClientBuilder_Auth() { + public void newClientBuilder_Auth() { config.property("a", "b"); @@ -81,7 +81,7 @@ public void testNewClientBuilder_Auth() { } @Test - public void testNewClient_Auth_BadAuth() { + public void newClient_Auth_BadAuth() { config.property("a", "b"); diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactoryIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactoryIT.java index 98ea663..6e00f37 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactoryIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactoryIT.java @@ -60,7 +60,7 @@ public class HttpClientFactoryFactoryIT { private final Injector mockInjector = mock(Injector.class); @Test - public void testCreateClientFactory_FollowRedirect() { + public void createClientFactory_FollowRedirect() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); factoryFactory.setFollowRedirects(true); @@ -72,7 +72,7 @@ public void testCreateClientFactory_FollowRedirect() { } @Test - public void testCreateClientFactory_NoFollowRedirect() { + public void createClientFactory_NoFollowRedirect() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); factoryFactory.setFollowRedirects(false); @@ -83,7 +83,7 @@ public void testCreateClientFactory_NoFollowRedirect() { } @Test - public void testCreateClientFactory_DefaultRedirect_Follow() { + public void createClientFactory_DefaultRedirect_Follow() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); Client client = factoryFactory.createClientFactory(mockInjector, Collections.emptySet()).newClient(); @@ -94,7 +94,7 @@ public void testCreateClientFactory_DefaultRedirect_Follow() { } @Test - public void testCreateClientFactory_Compression() { + public void createClientFactory_Compression() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); factoryFactory.setCompression(true); @@ -106,7 +106,7 @@ public void testCreateClientFactory_Compression() { } @Test - public void testCreateClientFactory_NoCompression() { + public void createClientFactory_NoCompression() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); factoryFactory.setCompression(false); @@ -118,7 +118,7 @@ public void testCreateClientFactory_NoCompression() { } @Test - public void testCreateClientFactory_CompressionDefault() { + public void createClientFactory_CompressionDefault() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); factoryFactory.setCompression(true); @@ -130,7 +130,7 @@ public void testCreateClientFactory_CompressionDefault() { } @Test - public void testCreateClientFactory_NoTimeout() { + public void createClientFactory_NoTimeout() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); Client client = factoryFactory.createClientFactory(mockInjector, Collections.emptySet()).newClient(); @@ -141,7 +141,7 @@ public void testCreateClientFactory_NoTimeout() { } @Test - public void testCreateClientFactory_LongTimeout() { + public void createClientFactory_LongTimeout() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); factoryFactory.setReadTimeoutMs(2000); @@ -153,7 +153,7 @@ public void testCreateClientFactory_LongTimeout() { } @Test - public void testCreateClientFactory_ReadTimeout() { + public void createClientFactory_ReadTimeout() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); factoryFactory.setReadTimeoutMs(50); @@ -164,7 +164,7 @@ public void testCreateClientFactory_ReadTimeout() { } @Test - public void testCreateClientFactory_BasicAuth() { + public void createClientFactory_BasicAuth() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactory_ConfigIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactory_ConfigIT.java index c731884..a3ff944 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactory_ConfigIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactory_ConfigIT.java @@ -68,7 +68,7 @@ private ConfigurationFactory factory(String yaml) { } @Test - public void testClientFlags() { + public void clientFlags() { HttpClientFactoryFactory factory = factory( "r:\n followRedirects: true\n connectTimeoutMs: 78\n readTimeoutMs: 66\n asyncThreadPoolSize: 44\n") .config(HttpClientFactoryFactory.class, "r"); @@ -80,7 +80,7 @@ public void testClientFlags() { } @Test - public void testAuthTypes() { + public void authTypes() { HttpClientFactoryFactory factory = factory( "r:\n auth:\n a1:\n type: basic\n username: u1\n password: p1\n") .config(HttpClientFactoryFactory.class, "r"); diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactory_LoggingIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactory_LoggingIT.java index fd3cc45..93ff645 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactory_LoggingIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactory_LoggingIT.java @@ -90,7 +90,7 @@ public void before() { } @Test - public void testCreateClientFactory_Debug() throws IOException, InterruptedException { + public void createClientFactory_Debug() throws IOException, InterruptedException { startApp("debug.yml"); @@ -114,7 +114,7 @@ public void testCreateClientFactory_Debug() throws IOException, InterruptedExcep } @Test - public void testCreateClientFactory_Warn() throws IOException, InterruptedException { + public void createClientFactory_Warn() throws IOException, InterruptedException { startApp("warn.yml"); diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryIT.java index 862e520..ccd78a2 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryIT.java @@ -58,7 +58,7 @@ public class HttpClientFactoryIT { final BQTestFactory clientFactory = new BQTestFactory(); @Test - public void testNewClient() { + public void newClient() { HttpClientFactory factory = clientFactory.app() .moduleProvider(new JerseyClientModuleProvider()) @@ -74,7 +74,7 @@ public void testNewClient() { } @Test - public void testNewClientAuth() { + public void newClientAuth() { HttpClientFactory factory = clientFactory.app() .moduleProvider(new JerseyClientModuleProvider()) diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_FeaturesIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_FeaturesIT.java index 10e6e91..b38e7d7 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_FeaturesIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_FeaturesIT.java @@ -60,7 +60,7 @@ public class HttpClientFactory_FeaturesIT { .createRuntime(); @Test - public void testFeaturesLoaded() { + public void featuresLoaded() { assertFalse(Feature1.LOADED); assertFalse(Feature2.LOADED); diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_TrustStoresIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_TrustStoresIT.java index 827bfc6..edee28f 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_TrustStoresIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_TrustStoresIT.java @@ -59,7 +59,7 @@ private String serviceUrl() { } @Test - public void testNamedTrustStore() { + public void namedTrustStore() { HttpClientFactory factory = clientFactory .app("-c", "classpath:io/bootique/jersey/client/TrustStoresIT_client.yml") @@ -89,7 +89,7 @@ public void testNamedTrustStore() { } @Test - public void testNamedTrustStore_Invalid() { + public void namedTrustStore_Invalid() { HttpClientFactory factory = clientFactory .app("-c", "classpath:io/bootique/jersey/client/TrustStoresIT_client.yml") diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpTargetsIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpTargetsIT.java index 5817e52..f5fc83a 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpTargetsIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpTargetsIT.java @@ -58,7 +58,7 @@ public class HttpTargetsIT { public BQTestFactory clientFactory = new BQTestFactory(); @Test - public void testNewTarget() { + public void newTarget() { HttpTargets targets = clientFactory.app() .moduleProvider(new JerseyClientModuleProvider()) .moduleProvider(new LogbackModuleProvider()) @@ -78,7 +78,7 @@ public void testNewTarget() { } @Test - public void testNewTarget_Auth() { + public void newTarget_Auth() { HttpTargets targets = clientFactory.app() .moduleProvider(new JerseyClientModuleProvider()) @@ -99,37 +99,37 @@ public void testNewTarget_Auth() { } @Test - public void testNewTarget_Redirects_Default_Follow() { + public void newTarget_Redirects_Default_Follow() { new FollowRedirectsTester(null, null).expectFollow(); } @Test - public void testNewTarget_Redirects_ClientNoFollow_TargetDefault() { + public void newTarget_Redirects_ClientNoFollow_TargetDefault() { new FollowRedirectsTester(false, null).expectNoFollow(); } @Test - public void testNewTarget_Redirects_ClientNoFollow_TargetFollow() { + public void newTarget_Redirects_ClientNoFollow_TargetFollow() { new FollowRedirectsTester(false, true).expectFollow(); } @Test - public void testNewTarget_Compression_Default_Compressed() { + public void newTarget_Compression_Default_Compressed() { new CompressionTester(null, null).expectCompressed(); } @Test - public void testNewTarget_Compression_ClientNotCompressed_TargetDefault() { + public void newTarget_Compression_ClientNotCompressed_TargetDefault() { new CompressionTester(false, null).expectUncompressed(); } @Test - public void testNewTarget_Compression_ClientNotCompressed_TargetCompressed() { + public void newTarget_Compression_ClientNotCompressed_TargetCompressed() { new CompressionTester(false, true).expectCompressed(); } @Test - public void testNewTarget_Compression_ClientCompressed_TargetCompressed() { + public void newTarget_Compression_ClientCompressed_TargetCompressed() { new CompressionTester(true, true).expectCompressed(); } diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpTargets_FeaturesIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpTargets_FeaturesIT.java index c359118..27e7859 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpTargets_FeaturesIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpTargets_FeaturesIT.java @@ -58,7 +58,7 @@ public class HttpTargets_FeaturesIT { final BQTestFactory clientFactory = new BQTestFactory(); @Test - public void testFeatures() { + public void features() { HttpTargets targets = clientFactory.app() .moduleProvider(new JerseyClientModuleProvider()) .moduleProvider(new LogbackModuleProvider()) diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpTargets_TrustStoresIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpTargets_TrustStoresIT.java index 41ac53c..4b47f3b 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpTargets_TrustStoresIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/HttpTargets_TrustStoresIT.java @@ -62,7 +62,7 @@ protected String serviceUrl() { } @Test - public void testNamedTrustStore() { + public void namedTrustStore() { HttpTargets targets = clientFactory.app() .moduleProvider(new JerseyClientModuleProvider()) @@ -78,7 +78,7 @@ public void testNamedTrustStore() { } @Test - public void testNamedTrustStore_DerivedTarget() { + public void namedTrustStore_DerivedTarget() { HttpTargets targets = clientFactory.app() .moduleProvider(new JerseyClientModuleProvider()) @@ -94,7 +94,7 @@ public void testNamedTrustStore_DerivedTarget() { } @Test - public void testNamedTrustStore_InvalidRef() { + public void namedTrustStore_InvalidRef() { assertThrows(DIRuntimeException.class, () -> clientFactory.app() diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleIT.java index feb480b..ec6a985 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleIT.java @@ -63,7 +63,7 @@ public class JerseyClientModuleIT { final BQTestFactory clientFactory = new BQTestFactory(); @Test - public void testGet() { + public void get() { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .createRuntime(); @@ -74,7 +74,7 @@ public void testGet() { } @Test - public void testGetRx() throws ExecutionException, InterruptedException { + public void getRx() throws ExecutionException, InterruptedException { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .createRuntime(); @@ -85,7 +85,7 @@ public void testGetRx() throws ExecutionException, InterruptedException { } @Test - public void testGetRxThenApply() throws ExecutionException, InterruptedException { + public void getRxThenApply() throws ExecutionException, InterruptedException { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .createRuntime(); @@ -102,7 +102,7 @@ public void testGetRxThenApply() throws ExecutionException, InterruptedException } @Test - public void testGetRx_ExecutorDefaultParams() { + public void getRx_ExecutorDefaultParams() { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .createRuntime(); @@ -121,7 +121,7 @@ public void testGetRx_ExecutorDefaultParams() { } @Test - public void testGetRx_ExecutorCustomParams() { + public void getRx_ExecutorCustomParams() { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .property("bq.jerseyclient.asyncThreadPoolSize", "20") @@ -141,7 +141,7 @@ public void testGetRx_ExecutorCustomParams() { } @Test - public void testGet_Gzip() { + public void get_Gzip() { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .createRuntime(); diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleProviderIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleProviderIT.java index b1170ae..1ca6089 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleProviderIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleProviderIT.java @@ -25,12 +25,12 @@ public class JerseyClientModuleProviderIT { @Test - public void testAutoLoadable() { + public void autoLoadable() { BQModuleProviderChecker.testAutoLoadable(JerseyClientModuleProvider.class); } @Test - public void testMetadata() { + public void metadata() { BQModuleProviderChecker.testMetadata(JerseyClientModuleProvider.class); } } diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleProvider_MetadataIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleProvider_MetadataIT.java index 8ddeae0..112f3ca 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleProvider_MetadataIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleProvider_MetadataIT.java @@ -41,7 +41,7 @@ public class JerseyClientModuleProvider_MetadataIT { static final BQRuntime app = Bootique.app().autoLoadModules().createRuntime(); @Test - public void testMetadata() { + public void metadata() { ModulesMetadata modulesMetadata = app.getInstance(ModulesMetadata.class); Optional jerseyClientOpt = modulesMetadata.getModules() diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/ProviderInjectionIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/ProviderInjectionIT.java index 5b53183..e0b401f 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/ProviderInjectionIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/ProviderInjectionIT.java @@ -71,7 +71,7 @@ public class ProviderInjectionIT { .createRuntime(); @Test - public void testResponse() { + public void response() { WebTarget target = client .getInstance(HttpClientFactory.class) diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/ApiKeyHeaderAuthenticatorIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/ApiKeyHeaderAuthenticatorIT.java index 0a0f29c..7416437 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/ApiKeyHeaderAuthenticatorIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/ApiKeyHeaderAuthenticatorIT.java @@ -65,7 +65,7 @@ private WebTarget clientTarget(String name) { } @Test - public void testValidAuth() { + public void validAuth() { Response response = clientTarget("valid") .request() @@ -75,7 +75,7 @@ public void testValidAuth() { } @Test - public void testInvalidAuth() { + public void invalidAuth() { Response response = clientTarget("invalid") .request() @@ -85,7 +85,7 @@ public void testInvalidAuth() { } @Test - public void testCustomHeader() { + public void customHeader() { Response response = clientTarget("customValid") .request() diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/ApiKeyParameterAuthenticatorIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/ApiKeyParameterAuthenticatorIT.java index 542f5d3..cc01c78 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/ApiKeyParameterAuthenticatorIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/ApiKeyParameterAuthenticatorIT.java @@ -65,7 +65,7 @@ private WebTarget startClient(String targetName) { } @Test - public void testValidAuth() { + public void validAuth() { Response response = startClient("valid") .request() .get(); @@ -74,7 +74,7 @@ public void testValidAuth() { } @Test - public void testValidAuthWithParams() { + public void validAuthWithParams() { Response response = startClient("valid") .queryParam("x", "y") .request() @@ -84,7 +84,7 @@ public void testValidAuthWithParams() { } @Test - public void testInvalidAuth() { + public void invalidAuth() { Response response = startClient("invalid") .request() .get(); @@ -93,7 +93,7 @@ public void testInvalidAuth() { } @Test - public void testCustomParameter() { + public void customParameter() { Response response = startClient("customValid") .request() diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/OAuth2AuthenticatorFactoryIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/OAuth2AuthenticatorFactoryIT.java index 3902dc7..51c302f 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/OAuth2AuthenticatorFactoryIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/OAuth2AuthenticatorFactoryIT.java @@ -62,7 +62,7 @@ private Injector clientStackInjector() { } @Test - public void testGetToken() { + public void getToken() { OAuth2AuthenticatorFactory factory = new OAuth2AuthenticatorFactory(); factory.setPassword("p"); @@ -78,7 +78,7 @@ public void testGetToken() { } @Test - public void testGetToken_Error() { + public void getToken_Error() { OAuth2AuthenticatorFactory factory = new OAuth2AuthenticatorFactory(); factory.setPassword("p"); @@ -89,7 +89,7 @@ public void testGetToken_Error() { } @Test - public void testGetWithToken() { + public void getWithToken() { OAuth2AuthenticatorFactory factory = new OAuth2AuthenticatorFactory(); factory.setPassword("p"); diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/OAuth2AuthenticatorFactory_ExpirationIT.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/OAuth2AuthenticatorFactory_ExpirationIT.java index 591c5b5..ec3357f 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/OAuth2AuthenticatorFactory_ExpirationIT.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/OAuth2AuthenticatorFactory_ExpirationIT.java @@ -64,7 +64,7 @@ private Injector clientStackInjector() { } @Test - public void testGetWithToken() throws InterruptedException { + public void getWithToken() throws InterruptedException { OAuth2AuthenticatorFactory factory = new OAuth2AuthenticatorFactory(); factory.setPassword("p"); diff --git a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/OAuth2TokenTest.java b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/OAuth2TokenTest.java index f04d224..c5670ae 100644 --- a/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/OAuth2TokenTest.java +++ b/bootique-jersey-client/src/test/java/io/bootique/jersey/client/auth/OAuth2TokenTest.java @@ -31,14 +31,14 @@ public class OAuth2TokenTest { @Test - public void testExpiredToken() { + public void expiredToken() { OAuth2Token token = OAuth2Token.expiredToken(); assertNotNull(token); assertTrue(token.needsRefresh()); } @Test - public void testToken() { + public void token() { OAuth2Token token = OAuth2Token.token("abcd", LocalDateTime.now().plusDays(1)); assertNotNull(token); assertFalse(token.needsRefresh()); diff --git a/bootique-jersey-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJacksonIT.java b/bootique-jersey-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJacksonIT.java index 29d5185..39834a3 100644 --- a/bootique-jersey-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJacksonIT.java +++ b/bootique-jersey-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJacksonIT.java @@ -46,13 +46,13 @@ public class BQJerseyJacksonIT { .createRuntime(); @Test - public void testJacksonSerialization() { + public void jacksonSerialization() { Response r = jetty.getTarget().request().get(); JettyTester.assertOk(r).assertContent("{\"p1\":\"s\",\"p2\":45,\"ts\":\"2020-01-02T03:04:05\"}"); } @Test - public void testJacksonDeserialization() { + public void jacksonDeserialization() { String entity = "{\"p1\":\"xx\",\"p2\":55,\"ts\":\"2021-01-02T01:04:05\"}"; Response r = jetty.getTarget().request().put(Entity.entity(entity, MediaType.APPLICATION_JSON_TYPE)); JettyTester.assertOk(r).assertContent(entity); diff --git a/bootique-jersey-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJackson_JsonSerializerIT.java b/bootique-jersey-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJackson_JsonSerializerIT.java index acb74d6..d27de14 100644 --- a/bootique-jersey-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJackson_JsonSerializerIT.java +++ b/bootique-jersey-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJackson_JsonSerializerIT.java @@ -49,7 +49,7 @@ public class BQJerseyJackson_JsonSerializerIT { .createRuntime(); @Test - public void testJacksonSerialization() { + public void jacksonSerialization() { Response r = jetty.getTarget().request().get(); JettyTester.assertOk(r).assertContent("{\"p1\":\"s\",\"x\":\"xxxxx\"}"); } diff --git a/bootique-jersey-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJackson_NullsIT.java b/bootique-jersey-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJackson_NullsIT.java index 7a678dc..005dfea 100644 --- a/bootique-jersey-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJackson_NullsIT.java +++ b/bootique-jersey-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJackson_NullsIT.java @@ -62,7 +62,7 @@ protected WebTarget startServer(BQModule... modules) { } @Test - public void testPrintNulls() { + public void printNulls() { WebTarget target = startServer(b -> JerseyModule.extend(b).addResource(JsonResource.class)); @@ -72,7 +72,7 @@ public void testPrintNulls() { } @Test - public void testIgnoreNulls() { + public void ignoreNulls() { WebTarget target = startServer( b -> JerseyModule.extend(b).addResource(JsonResource.class), diff --git a/bootique-jersey-jackson/src/test/java/io/bootique/jersey/jackson/JerseyJacksonModuleTest.java b/bootique-jersey-jackson/src/test/java/io/bootique/jersey/jackson/JerseyJacksonModuleTest.java index 0f4eeec..86b806a 100644 --- a/bootique-jersey-jackson/src/test/java/io/bootique/jersey/jackson/JerseyJacksonModuleTest.java +++ b/bootique-jersey-jackson/src/test/java/io/bootique/jersey/jackson/JerseyJacksonModuleTest.java @@ -24,7 +24,7 @@ public class JerseyJacksonModuleTest { @Test - public void testAutoLoad() { + public void autoLoad() { BQModuleProviderChecker.testAutoLoadable(JerseyJacksonModule.class); } } diff --git a/bootique-jersey-jakarta-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/JerseyBeanValidationModuleProviderTest.java b/bootique-jersey-jakarta-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/JerseyBeanValidationModuleProviderTest.java index b08e176..6cba2a1 100644 --- a/bootique-jersey-jakarta-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/JerseyBeanValidationModuleProviderTest.java +++ b/bootique-jersey-jakarta-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/JerseyBeanValidationModuleProviderTest.java @@ -25,7 +25,7 @@ public class JerseyBeanValidationModuleProviderTest { @Test - public void testAutoLoadable() { + public void autoLoadable() { BQModuleProviderChecker.testAutoLoadable(JerseyBeanValidationModuleProvider.class); } } diff --git a/bootique-jersey-jakarta-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/ValidationIT.java b/bootique-jersey-jakarta-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/ValidationIT.java index ee9a912..8141d43 100644 --- a/bootique-jersey-jakarta-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/ValidationIT.java +++ b/bootique-jersey-jakarta-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/ValidationIT.java @@ -65,7 +65,7 @@ private static Consumer assertTrimmed(String expected) { } @Test - public void testParamValidation_NotNull() { + public void paramValidation_NotNull() { Response ok = jetty.getTarget().path("notNull").queryParam("q", "A").request(MediaType.TEXT_PLAIN).get(); JettyTester.assertOk(ok).assertContent("_A_"); @@ -75,7 +75,7 @@ public void testParamValidation_NotNull() { } @Test - public void testParamValidation_Range() { + public void paramValidation_Range() { Response ok = jetty.getTarget().path("range").queryParam("q", "3").request(MediaType.TEXT_PLAIN).get(); JettyTester.assertOk(ok).assertContent("_3_"); @@ -88,7 +88,7 @@ public void testParamValidation_Range() { } @Test - public void testParamValidation_ListSize() { + public void paramValidation_ListSize() { Response ok = jetty.getTarget().path("size") .queryParam("q", "3") .queryParam("q", "1") @@ -108,7 +108,7 @@ public void testParamValidation_ListSize() { } @Test - public void testParamValidation_Valid() { + public void paramValidation_Valid() { Response ok = jetty.getTarget().path("valid").queryParam("q", "a1").request(MediaType.TEXT_PLAIN).get(); JettyTester.assertOk(ok).assertContent("_{a1}_"); @@ -121,7 +121,7 @@ public void testParamValidation_Valid() { } @Test - public void testParamValidation_Custom() { + public void paramValidation_Custom() { Response ok = jetty.getTarget().path("custom").queryParam("q", "a1").request(MediaType.TEXT_PLAIN).get(); JettyTester.assertOk(ok).assertContent("_a1_"); diff --git a/bootique-jersey-jakarta-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/ValidationNoErrorsInResponseIT.java b/bootique-jersey-jakarta-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/ValidationNoErrorsInResponseIT.java index f9005a3..1761313 100644 --- a/bootique-jersey-jakarta-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/ValidationNoErrorsInResponseIT.java +++ b/bootique-jersey-jakarta-beanvalidation/src/test/java/io/bootique/jersey/beanvalidation/ValidationNoErrorsInResponseIT.java @@ -58,7 +58,7 @@ private static Consumer assertTrimmed(String expected) { } @Test - public void testParamValidation_NotNull() { + public void paramValidation_NotNull() { Response ok = jetty.getTarget().path("notNull").queryParam("q", "A").request(MediaType.TEXT_PLAIN).get(); JettyTester.assertOk(ok).assertContent("_A_"); diff --git a/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClientIT.java b/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClientIT.java index 173c897..e435870 100644 --- a/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClientIT.java +++ b/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClientIT.java @@ -82,7 +82,7 @@ public void resetClient() { } @Test - public void testMetrics() { + public void metrics() { // fault filter to init metrics client.getInstance(RequestTimer.class); MetricRegistry metricRegistry = client.getInstance(MetricRegistry.class); @@ -91,7 +91,7 @@ public void testMetrics() { } @Test - public void testTimerInvoked() { + public void timerInvoked() { HttpClientFactory factory = client.getInstance(HttpClientFactory.class); MetricRegistry metrics = client.getInstance(MetricRegistry.class); @@ -109,7 +109,7 @@ public void testTimerInvoked() { } @Test - public void testTimer_ConnectionError() { + public void timer_ConnectionError() { Client jaxrsClient = client.getInstance(HttpClientFactory.class).newClient(); MetricRegistry metrics = client.getInstance(MetricRegistry.class); @@ -130,7 +130,7 @@ public void testTimer_ConnectionError() { } @Test - public void testTimer_ServerErrors() { + public void timer_ServerErrors() { Client jaxrsClient = client.getInstance(HttpClientFactory.class).newClient(); MetricRegistry metrics = client.getInstance(MetricRegistry.class); diff --git a/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClientMDCIT.java b/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClientMDCIT.java index c321e38..e067644 100644 --- a/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClientMDCIT.java +++ b/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClientMDCIT.java @@ -73,7 +73,7 @@ void clearMDC() { } @Test - public void testNoMDCRx() { + public void noMDCRx() { HttpClientFactory factory = clientApp.getInstance(HttpClientFactory.class); @@ -94,7 +94,7 @@ public void testNoMDCRx() { } @Test - public void testMDCRx() { + public void mDCRx() { HttpClientFactory factory = clientApp.getInstance(HttpClientFactory.class); @@ -115,7 +115,7 @@ public void testMDCRx() { } @Test - public void testMDCRxNestedAsync() { + public void mDCRxNestedAsync() { HttpClientFactory factory = clientApp.getInstance(HttpClientFactory.class); @@ -135,7 +135,7 @@ public void testMDCRxNestedAsync() { } @Test - public void testMDCRxNestedSync() { + public void mDCRxNestedSync() { HttpClientFactory factory = clientApp.getInstance(HttpClientFactory.class); @@ -155,7 +155,7 @@ public void testMDCRxNestedSync() { } @Test - public void testMDCRxParallel() throws ExecutionException, InterruptedException, TimeoutException { + public void mDCRxParallel() throws ExecutionException, InterruptedException, TimeoutException { HttpClientFactory factory = clientApp.getInstance(HttpClientFactory.class); diff --git a/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClient_ThresholdsIT.java b/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClient_ThresholdsIT.java index 7ca8e80..3ccae2b 100644 --- a/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClient_ThresholdsIT.java +++ b/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedClient_ThresholdsIT.java @@ -85,7 +85,7 @@ private HealthCheckOutcome tickAndRunCheck(BQRuntime client, String checkName) t } @Test - public void testRequestsPerMin() throws InterruptedException { + public void requestsPerMin() throws InterruptedException { BQRuntime client = createClient(); WebTarget target = createTarget(client); diff --git a/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedHttpClientFactoryFactoryTest.java b/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedHttpClientFactoryFactoryTest.java index c6fc343..955c375 100644 --- a/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedHttpClientFactoryFactoryTest.java +++ b/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/InstrumentedHttpClientFactoryFactoryTest.java @@ -36,7 +36,7 @@ public class InstrumentedHttpClientFactoryFactoryTest { private final Injector mockInjector = mock(Injector.class); @Test - public void testCreateClientFactory_AsyncThreadPool() { + public void createClientFactory_AsyncThreadPool() { Client client = new InstrumentedHttpClientFactoryFactory() .createClientFactory(mockInjector, Set.of(), new HttpUrlConnectorProvider()).newClient(); diff --git a/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/JerseyClientInstrumentedModuleProviderTest.java b/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/JerseyClientInstrumentedModuleProviderTest.java index ab1b3fb..dfee481 100644 --- a/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/JerseyClientInstrumentedModuleProviderTest.java +++ b/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/JerseyClientInstrumentedModuleProviderTest.java @@ -35,12 +35,12 @@ public class JerseyClientInstrumentedModuleProviderTest { final BQTestFactory testFactory = new BQTestFactory(); @Test - public void testAutoLoadable() { + public void autoLoadable() { BQModuleProviderChecker.testAutoLoadable(JerseyClientInstrumentedModuleProvider.class); } @Test - public void testModuleDeclaresDependencies() { + public void moduleDeclaresDependencies() { final BQRuntime bqRuntime = testFactory.app().moduleProvider(new JerseyClientInstrumentedModuleProvider()).createRuntime(); BQRuntimeChecker.testModulesLoaded(bqRuntime, JerseyClientModule.class, diff --git a/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/healthcheck/HttpHealthCheckIT.java b/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/healthcheck/HttpHealthCheckIT.java index 8cae6b7..7e49a18 100644 --- a/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/healthcheck/HttpHealthCheckIT.java +++ b/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/healthcheck/HttpHealthCheckIT.java @@ -61,7 +61,7 @@ private WebTarget target(String path) { } @Test - public void testSafeCheck_NoConnection() { + public void safeCheck_NoConnection() { // access a port that is not in use int openPort = PortFinder.findAvailablePort("127.0.0.1"); WebTarget target = ClientBuilder.newClient().target("http://127.0.0.1:" + openPort); @@ -73,7 +73,7 @@ public void testSafeCheck_NoConnection() { } @Test - public void testSafeCheck_ViaGet_TempRedirect() { + public void safeCheck_ViaGet_TempRedirect() { WebTarget target = target("moved"); HealthCheckOutcome outcome = HttpHealthCheck.viaGET(target).safeCheck(); assertEquals(HealthCheckStatus.OK, outcome.getStatus(), outcome.toString()); @@ -81,7 +81,7 @@ public void testSafeCheck_ViaGet_TempRedirect() { } @Test - public void testSafeCheck_ViaGet_TempRedirect_Overwritten() { + public void safeCheck_ViaGet_TempRedirect_Overwritten() { // testing that while the initial target is setup to not follow redirects, health check still does. @@ -94,7 +94,7 @@ public void testSafeCheck_ViaGet_TempRedirect_Overwritten() { } @Test - public void testSafeCheck_ViaHead_NotFound() { + public void safeCheck_ViaHead_NotFound() { WebTarget target = target("no_such_thing"); HealthCheckOutcome outcome = HttpHealthCheck.viaHEAD(target).safeCheck(); assertEquals(HealthCheckStatus.WARNING, outcome.getStatus()); @@ -102,7 +102,7 @@ public void testSafeCheck_ViaHead_NotFound() { } @Test - public void testSafeCheck_ViaGet_ServerError() { + public void safeCheck_ViaGet_ServerError() { WebTarget target = target("get500"); HealthCheckOutcome outcome = HttpHealthCheck.viaHEAD(target).safeCheck(); assertEquals(HealthCheckStatus.CRITICAL, outcome.getStatus()); @@ -110,14 +110,14 @@ public void testSafeCheck_ViaGet_ServerError() { } @Test - public void testSafeCheck_ViaGet() { + public void safeCheck_ViaGet() { WebTarget target = target("get"); HealthCheckOutcome outcome = HttpHealthCheck.viaGET(target).safeCheck(); assertEquals(HealthCheckStatus.OK, outcome.getStatus(), outcome.toString()); } @Test - public void testSafeCheck_ViaHead() { + public void safeCheck_ViaHead() { // note that we don't need an explicit OPTIONS endpoint ... // Jersey server must provide an implicit behavior for a valid resource @@ -127,7 +127,7 @@ public void testSafeCheck_ViaHead() { } @Test - public void testSafeCheck_ViaOptions() { + public void safeCheck_ViaOptions() { // note that we don't need an explicit HEAD endpoint ... // Jersey server must provide an implicit behavior for a valid resource WebTarget target = target("get"); diff --git a/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/healthcheck/RangeHealthCheckTest.java b/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/healthcheck/RangeHealthCheckTest.java index 8eb71bc..f63b391 100644 --- a/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/healthcheck/RangeHealthCheckTest.java +++ b/bootique-jersey-jakarta-client-instrumented/src/test/java/io/bootique/jersey/client/instrumented/healthcheck/RangeHealthCheckTest.java @@ -38,7 +38,7 @@ public void before() { } @Test - public void testRange_1() { + public void range_1() { Timer timer = registry.timer(RequestTimer.TIMER_NAME); Mockito.when(timer.getOneMinuteRate()).thenReturn(0.009); @@ -49,7 +49,7 @@ public void testRange_1() { @Test - public void testRange_2() { + public void range_2() { Timer timer = registry.timer(RequestTimer.TIMER_NAME); Mockito.when(timer.getOneMinuteRate()).thenReturn(0.03); @@ -59,7 +59,7 @@ public void testRange_2() { } @Test - public void testRange_3() { + public void range_3() { Timer timer = registry.timer(RequestTimer.TIMER_NAME); Mockito.when(timer.getOneMinuteRate()).thenReturn(0.06); diff --git a/bootique-jersey-jakarta-client-jetty/src/test/java/io/bootique/jersey/client/jetty/JerseyClientJettyModuleIT.java b/bootique-jersey-jakarta-client-jetty/src/test/java/io/bootique/jersey/client/jetty/JerseyClientJettyModuleIT.java index 71286f5..3d45219 100644 --- a/bootique-jersey-jakarta-client-jetty/src/test/java/io/bootique/jersey/client/jetty/JerseyClientJettyModuleIT.java +++ b/bootique-jersey-jakarta-client-jetty/src/test/java/io/bootique/jersey/client/jetty/JerseyClientJettyModuleIT.java @@ -61,7 +61,7 @@ public class JerseyClientJettyModuleIT { final BQTestFactory clientFactory = new BQTestFactory(); @Test - public void testProviderRegistered() { + public void providerRegistered() { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .createRuntime(); @@ -70,7 +70,7 @@ public void testProviderRegistered() { } @Test - public void testGet() { + public void get() { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .createRuntime(); @@ -81,7 +81,7 @@ public void testGet() { } @Test - public void testGetRx() throws ExecutionException, InterruptedException { + public void getRx() throws ExecutionException, InterruptedException { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .createRuntime(); @@ -93,7 +93,7 @@ public void testGetRx() throws ExecutionException, InterruptedException { @Disabled("rx/thenApply causes a deadlock and timeout with Jetty") @Test - public void testGetRxThenApply() throws ExecutionException, InterruptedException { + public void getRxThenApply() throws ExecutionException, InterruptedException { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .createRuntime(); @@ -110,7 +110,7 @@ public void testGetRxThenApply() throws ExecutionException, InterruptedException } @Test - public void testGet_Gzip() { + public void get_Gzip() { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .createRuntime(); diff --git a/bootique-jersey-jakarta-client-jetty/src/test/java/io/bootique/jersey/client/jetty/JerseyClientJettyModuleTest.java b/bootique-jersey-jakarta-client-jetty/src/test/java/io/bootique/jersey/client/jetty/JerseyClientJettyModuleTest.java index a3678c7..af504d8 100644 --- a/bootique-jersey-jakarta-client-jetty/src/test/java/io/bootique/jersey/client/jetty/JerseyClientJettyModuleTest.java +++ b/bootique-jersey-jakarta-client-jetty/src/test/java/io/bootique/jersey/client/jetty/JerseyClientJettyModuleTest.java @@ -24,7 +24,7 @@ public class JerseyClientJettyModuleTest { @Test - public void testAutoLoadable() { + public void autoLoadable() { BQModuleProviderChecker.testAutoLoadable(JerseyClientJettyModuleProvider.class); } } diff --git a/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_ProxyIT.java b/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_ProxyIT.java index 1619ee8..cdd2593 100644 --- a/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_ProxyIT.java +++ b/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_ProxyIT.java @@ -49,7 +49,7 @@ public class WireMockTester_ProxyIT extends TestWithEmulatedBackend { .createRuntime(); @Test - public void testRoot() { + public void root() { WebTarget target = app.getInstance(HttpTargets.class).newTarget("tester"); JettyTester.assertOk(target.request().get()) .assertContentType(MediaType.TEXT_PLAIN) @@ -59,7 +59,7 @@ public void testRoot() { } @Test - public void testPath() { + public void path() { WebTarget target = app.getInstance(HttpTargets.class).newTarget("tester").path("p1"); JettyTester.assertOk(target.request().get()) .assertContentType(MediaType.TEXT_PLAIN) @@ -69,7 +69,7 @@ public void testPath() { } @Test - public void testTwoRequestsSameMethod() { + public void twoRequestsSameMethod() { WebTarget t1 = app.getInstance(HttpTargets.class).newTarget("tester").path("p1"); JettyTester.assertOk(t1.request().get()) .assertContentType(MediaType.TEXT_PLAIN) @@ -91,7 +91,7 @@ public void testTwoRequestsSameMethod() { } @Test - public void testQuery() { + public void query() { WebTarget target = app.getInstance(HttpTargets.class) .newTarget("tester") // That's an old Bootique video. Hopefully it stays stable diff --git a/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_Proxy_MultipleIT.java b/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_Proxy_MultipleIT.java index 5901ac7..2b0cd77 100644 --- a/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_Proxy_MultipleIT.java +++ b/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_Proxy_MultipleIT.java @@ -74,7 +74,7 @@ public class WireMockTester_Proxy_MultipleIT extends TestWithEmulatedBackend { .createRuntime(); @Test - public void testTwoTargets() { + public void twoTargets() { WebTarget t1 = app.getInstance(HttpTargets.class).newTarget("tester1"); JettyTester.assertOk(t1.request().get()) .assertContentType(MediaType.TEXT_PLAIN) diff --git a/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_Proxy_NoSnapshotIT.java b/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_Proxy_NoSnapshotIT.java index 825499c..890a8b4 100644 --- a/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_Proxy_NoSnapshotIT.java +++ b/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_Proxy_NoSnapshotIT.java @@ -48,7 +48,7 @@ public class WireMockTester_Proxy_NoSnapshotIT extends TestWithEmulatedBackend { .createRuntime(); @Test - public void testRoot() { + public void root() { WebTarget target = app.getInstance(HttpTargets.class).newTarget("tester"); JettyTester.assertOk(target.request().get()) .assertContentType(MediaType.TEXT_PLAIN) @@ -58,7 +58,7 @@ public void testRoot() { } @Test - public void testPath() { + public void path() { WebTarget target = app.getInstance(HttpTargets.class).newTarget("tester").path("p1"); JettyTester.assertOk(target.request().get()) .assertContentType(MediaType.TEXT_PLAIN) diff --git a/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_Proxy_wPathIT.java b/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_Proxy_wPathIT.java index 67d5448..9b03627 100644 --- a/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_Proxy_wPathIT.java +++ b/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_Proxy_wPathIT.java @@ -49,7 +49,7 @@ public class WireMockTester_Proxy_wPathIT extends TestWithEmulatedBackend { .createRuntime(); @Test - public void testTarget() { + public void target() { WebTarget target = app.getInstance(HttpTargets.class).newTarget("tester"); JettyTester.assertOk(target.request().get()) .assertContentType(MediaType.TEXT_PLAIN) @@ -59,7 +59,7 @@ public void testTarget() { } @Test - public void testSubTarget() { + public void subTarget() { WebTarget target = app.getInstance(HttpTargets.class).newTarget("tester").path("p11"); JettyTester.assertOk(target.request().get()) .assertContentType(MediaType.TEXT_PLAIN) @@ -69,7 +69,7 @@ public void testSubTarget() { } @Test - public void testTarget_wQuery() { + public void target_wQuery() { WebTarget target = app.getInstance(HttpTargets.class).newTarget("tester").queryParam("q", "x"); JettyTester.assertOk(target.request().get()) .assertContentType(MediaType.TEXT_PLAIN) diff --git a/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_RedirectsIT.java b/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_RedirectsIT.java index 52a350c..169c7ca 100644 --- a/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_RedirectsIT.java +++ b/bootique-jersey-jakarta-client-junit5-wiremock/src/test/java/io/bootique/jersey/client/junit5/wiremock/WireMockTester_RedirectsIT.java @@ -46,7 +46,7 @@ public class WireMockTester_RedirectsIT extends TestWithEmulatedBackend { .createRuntime(); @Test - public void testRedirect() { + public void redirect() { WebTarget target = app.getInstance(HttpTargets.class) .newTarget("tester") .path("redirect") diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/DefaultHttpClientFactoryTest.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/DefaultHttpClientFactoryTest.java index 5e2f245..47f3945 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/DefaultHttpClientFactoryTest.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/DefaultHttpClientFactoryTest.java @@ -38,7 +38,7 @@ public class DefaultHttpClientFactoryTest { private ClientRequestFilter mockAuth2 = mock(ClientRequestFilter.class); @Test - public void testNewClient() { + public void newClient() { config.property("x", "y"); @@ -50,7 +50,7 @@ public void testNewClient() { } @Test - public void testNewClient_NewInstanceEveryTime() { + public void newClient_NewInstanceEveryTime() { DefaultHttpClientFactory factory = new DefaultHttpClientFactory( config, @@ -63,7 +63,7 @@ public void testNewClient_NewInstanceEveryTime() { } @Test - public void testNewClientBuilder_Auth() { + public void newClientBuilder_Auth() { config.property("a", "b"); @@ -81,7 +81,7 @@ public void testNewClientBuilder_Auth() { } @Test - public void testNewClient_Auth_BadAuth() { + public void newClient_Auth_BadAuth() { config.property("a", "b"); diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactoryIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactoryIT.java index 8a3815b..03d0cd2 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactoryIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactoryIT.java @@ -61,7 +61,7 @@ public class HttpClientFactoryFactoryIT { private final Injector mockInjector = mock(Injector.class); @Test - public void testCreateClientFactory_FollowRedirect() { + public void createClientFactory_FollowRedirect() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); factoryFactory.setFollowRedirects(true); @@ -73,7 +73,7 @@ public void testCreateClientFactory_FollowRedirect() { } @Test - public void testCreateClientFactory_NoFollowRedirect() { + public void createClientFactory_NoFollowRedirect() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); factoryFactory.setFollowRedirects(false); @@ -84,7 +84,7 @@ public void testCreateClientFactory_NoFollowRedirect() { } @Test - public void testCreateClientFactory_DefaultRedirect_Follow() { + public void createClientFactory_DefaultRedirect_Follow() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); Client client = factoryFactory.createClientFactory(mockInjector, Collections.emptySet(), new HttpUrlConnectorProvider()).newClient(); @@ -95,7 +95,7 @@ public void testCreateClientFactory_DefaultRedirect_Follow() { } @Test - public void testCreateClientFactory_Compression() { + public void createClientFactory_Compression() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); factoryFactory.setCompression(true); @@ -107,7 +107,7 @@ public void testCreateClientFactory_Compression() { } @Test - public void testCreateClientFactory_NoCompression() { + public void createClientFactory_NoCompression() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); factoryFactory.setCompression(false); @@ -119,7 +119,7 @@ public void testCreateClientFactory_NoCompression() { } @Test - public void testCreateClientFactory_CompressionDefault() { + public void createClientFactory_CompressionDefault() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); factoryFactory.setCompression(true); @@ -131,7 +131,7 @@ public void testCreateClientFactory_CompressionDefault() { } @Test - public void testCreateClientFactory_NoTimeout() { + public void createClientFactory_NoTimeout() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); Client client = factoryFactory.createClientFactory(mockInjector, Collections.emptySet(), new HttpUrlConnectorProvider()).newClient(); @@ -142,7 +142,7 @@ public void testCreateClientFactory_NoTimeout() { } @Test - public void testCreateClientFactory_LongTimeout() { + public void createClientFactory_LongTimeout() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); factoryFactory.setReadTimeoutMs(2000); @@ -154,7 +154,7 @@ public void testCreateClientFactory_LongTimeout() { } @Test - public void testCreateClientFactory_ReadTimeout() { + public void createClientFactory_ReadTimeout() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); factoryFactory.setReadTimeoutMs(50); @@ -165,7 +165,7 @@ public void testCreateClientFactory_ReadTimeout() { } @Test - public void testCreateClientFactory_BasicAuth() { + public void createClientFactory_BasicAuth() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactoryTest.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactoryTest.java index 23c3640..1af52b3 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactoryTest.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactoryTest.java @@ -37,7 +37,7 @@ public class HttpClientFactoryFactoryTest { private Injector mockInjector = mock(Injector.class); @Test - public void testCreateClientFactory_AsyncThreadPool() { + public void createClientFactory_AsyncThreadPool() { Client client = new HttpClientFactoryFactory() .createClientFactory(mockInjector, Set.of(), new HttpUrlConnectorProvider()).newClient(); @@ -50,7 +50,7 @@ public void testCreateClientFactory_AsyncThreadPool() { } @Test - public void testCreateClientFactory() { + public void createClientFactory() { HttpClientFactoryFactory factoryFactory = new HttpClientFactoryFactory(); factoryFactory.setAsyncThreadPoolSize(5); diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactory_ConfigIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactory_ConfigIT.java index 72af08b..865ee84 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactory_ConfigIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactory_ConfigIT.java @@ -66,7 +66,7 @@ private ConfigurationFactory factory(String yaml) { } @Test - public void testClientFlags() { + public void clientFlags() { HttpClientFactoryFactory factory = factory( "r:\n followRedirects: true\n connectTimeoutMs: 78\n readTimeoutMs: 66\n asyncThreadPoolSize: 44\n") .config(HttpClientFactoryFactory.class, "r"); @@ -78,7 +78,7 @@ public void testClientFlags() { } @Test - public void testAuthTypes() { + public void authTypes() { HttpClientFactoryFactory factory = factory( "r:\n auth:\n a1:\n type: basic\n username: u1\n password: p1\n") .config(HttpClientFactoryFactory.class, "r"); diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactory_LoggingIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactory_LoggingIT.java index ff93887..200f274 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactory_LoggingIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryFactory_LoggingIT.java @@ -90,7 +90,7 @@ public void before() { } @Test - public void testCreateClientFactory_Debug() throws IOException, InterruptedException { + public void createClientFactory_Debug() throws IOException, InterruptedException { startApp("debug.yml"); @@ -114,7 +114,7 @@ public void testCreateClientFactory_Debug() throws IOException, InterruptedExcep } @Test - public void testCreateClientFactory_Warn() throws IOException, InterruptedException { + public void createClientFactory_Warn() throws IOException, InterruptedException { startApp("warn.yml"); diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryIT.java index 2c8aa58..32507cd 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactoryIT.java @@ -59,7 +59,7 @@ public class HttpClientFactoryIT { final BQTestFactory clientFactory = new BQTestFactory(); @Test - public void testNewClient() { + public void newClient() { HttpClientFactory factory = clientFactory.app() .moduleProvider(new JerseyClientModuleProvider()) @@ -75,7 +75,7 @@ public void testNewClient() { } @Test - public void testNewClientAuth() { + public void newClientAuth() { HttpClientFactory factory = clientFactory.app() .moduleProvider(new JerseyClientModuleProvider()) diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_CustomConnectorIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_CustomConnectorIT.java index e8b05fe..e9cf4e7 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_CustomConnectorIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_CustomConnectorIT.java @@ -62,7 +62,7 @@ public class HttpClientFactory_CustomConnectorIT { final BQTestFactory clientFactory = new BQTestFactory(); @Test - public void testCustomConnector() { + public void customConnector() { assertEquals(0, TestConnectorProvider.counter.get()); diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_FeaturesIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_FeaturesIT.java index 034717e..557f285 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_FeaturesIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_FeaturesIT.java @@ -59,7 +59,7 @@ public class HttpClientFactory_FeaturesIT { .createRuntime(); @Test - public void testFeaturesLoaded() { + public void featuresLoaded() { assertFalse(Feature1.LOADED); assertFalse(Feature2.LOADED); diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_TrustStoresIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_TrustStoresIT.java index 39b08e1..a8bc9eb 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_TrustStoresIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpClientFactory_TrustStoresIT.java @@ -58,7 +58,7 @@ private String serviceUrl() { } @Test - public void testNamedTrustStore() { + public void namedTrustStore() { HttpClientFactory factory = clientFactory .app("-c", "classpath:io/bootique/jersey/client/TrustStoresIT_client.yml") @@ -88,7 +88,7 @@ public void testNamedTrustStore() { } @Test - public void testNamedTrustStore_Invalid() { + public void namedTrustStore_Invalid() { HttpClientFactory factory = clientFactory .app("-c", "classpath:io/bootique/jersey/client/TrustStoresIT_client.yml") diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpTargetsIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpTargetsIT.java index 1994648..1141ca5 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpTargetsIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpTargetsIT.java @@ -58,7 +58,7 @@ public class HttpTargetsIT { public BQTestFactory clientFactory = new BQTestFactory(); @Test - public void testNewTarget() { + public void newTarget() { HttpTargets targets = clientFactory.app() .moduleProvider(new JerseyClientModuleProvider()) .moduleProvider(new LogbackModuleProvider()) @@ -78,7 +78,7 @@ public void testNewTarget() { } @Test - public void testNewTarget_Auth() { + public void newTarget_Auth() { HttpTargets targets = clientFactory.app() .moduleProvider(new JerseyClientModuleProvider()) @@ -99,37 +99,37 @@ public void testNewTarget_Auth() { } @Test - public void testNewTarget_Redirects_Default_Follow() { + public void newTarget_Redirects_Default_Follow() { new FollowRedirectsTester(null, null).expectFollow(); } @Test - public void testNewTarget_Redirects_ClientNoFollow_TargetDefault() { + public void newTarget_Redirects_ClientNoFollow_TargetDefault() { new FollowRedirectsTester(false, null).expectNoFollow(); } @Test - public void testNewTarget_Redirects_ClientNoFollow_TargetFollow() { + public void newTarget_Redirects_ClientNoFollow_TargetFollow() { new FollowRedirectsTester(false, true).expectFollow(); } @Test - public void testNewTarget_Compression_Default_Compressed() { + public void newTarget_Compression_Default_Compressed() { new CompressionTester(null, null).expectCompressed(); } @Test - public void testNewTarget_Compression_ClientNotCompressed_TargetDefault() { + public void newTarget_Compression_ClientNotCompressed_TargetDefault() { new CompressionTester(false, null).expectUncompressed(); } @Test - public void testNewTarget_Compression_ClientNotCompressed_TargetCompressed() { + public void newTarget_Compression_ClientNotCompressed_TargetCompressed() { new CompressionTester(false, true).expectCompressed(); } @Test - public void testNewTarget_Compression_ClientCompressed_TargetCompressed() { + public void newTarget_Compression_ClientCompressed_TargetCompressed() { new CompressionTester(true, true).expectCompressed(); } diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpTargets_FeaturesIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpTargets_FeaturesIT.java index ce9c84f..dd9295d 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpTargets_FeaturesIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpTargets_FeaturesIT.java @@ -59,7 +59,7 @@ public class HttpTargets_FeaturesIT { final BQTestFactory clientFactory = new BQTestFactory(); @Test - public void testFeatures() { + public void features() { HttpTargets targets = clientFactory.app() .moduleProvider(new JerseyClientModuleProvider()) .moduleProvider(new LogbackModuleProvider()) diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpTargets_TrustStoresIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpTargets_TrustStoresIT.java index da9f538..ee6cf8a 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpTargets_TrustStoresIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/HttpTargets_TrustStoresIT.java @@ -61,7 +61,7 @@ protected String serviceUrl() { } @Test - public void testNamedTrustStore() { + public void namedTrustStore() { HttpTargets targets = clientFactory.app() .moduleProvider(new JerseyClientModuleProvider()) @@ -77,7 +77,7 @@ public void testNamedTrustStore() { } @Test - public void testNamedTrustStore_DerivedTarget() { + public void namedTrustStore_DerivedTarget() { HttpTargets targets = clientFactory.app() .moduleProvider(new JerseyClientModuleProvider()) @@ -93,7 +93,7 @@ public void testNamedTrustStore_DerivedTarget() { } @Test - public void testNamedTrustStore_InvalidRef() { + public void namedTrustStore_InvalidRef() { assertThrows(DIRuntimeException.class, () -> clientFactory.app() diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleIT.java index 2d3164a..bc43f39 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleIT.java @@ -63,7 +63,7 @@ public class JerseyClientModuleIT { final BQTestFactory clientFactory = new BQTestFactory(); @Test - public void testGet() { + public void get() { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .createRuntime(); @@ -74,7 +74,7 @@ public void testGet() { } @Test - public void testGetRx() throws ExecutionException, InterruptedException { + public void getRx() throws ExecutionException, InterruptedException { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .createRuntime(); @@ -85,7 +85,7 @@ public void testGetRx() throws ExecutionException, InterruptedException { } @Test - public void testGetRxThenApply() throws ExecutionException, InterruptedException { + public void getRxThenApply() throws ExecutionException, InterruptedException { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .createRuntime(); @@ -102,7 +102,7 @@ public void testGetRxThenApply() throws ExecutionException, InterruptedException } @Test - public void testGetRx_ExecutorDefaultParams() { + public void getRx_ExecutorDefaultParams() { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .createRuntime(); @@ -121,7 +121,7 @@ public void testGetRx_ExecutorDefaultParams() { } @Test - public void testGetRx_ExecutorCustomParams() { + public void getRx_ExecutorCustomParams() { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .property("bq.jerseyclient.asyncThreadPoolSize", "20") @@ -141,7 +141,7 @@ public void testGetRx_ExecutorCustomParams() { } @Test - public void testGet_Gzip() { + public void get_Gzip() { BQRuntime clientApp = clientFactory.app() .autoLoadModules() .createRuntime(); diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleProviderIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleProviderIT.java index b820973..5d1ea2a 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleProviderIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleProviderIT.java @@ -26,12 +26,12 @@ public class JerseyClientModuleProviderIT { @Test - public void testAutoLoadable() { + public void autoLoadable() { BQModuleProviderChecker.testAutoLoadable(JerseyClientModuleProvider.class); } @Test - public void testMetadata() { + public void metadata() { BQModuleProviderChecker.testMetadata(JerseyClientModuleProvider.class); } } diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleProvider_MetadataIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleProvider_MetadataIT.java index 8ddeae0..112f3ca 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleProvider_MetadataIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/JerseyClientModuleProvider_MetadataIT.java @@ -41,7 +41,7 @@ public class JerseyClientModuleProvider_MetadataIT { static final BQRuntime app = Bootique.app().autoLoadModules().createRuntime(); @Test - public void testMetadata() { + public void metadata() { ModulesMetadata modulesMetadata = app.getInstance(ModulesMetadata.class); Optional jerseyClientOpt = modulesMetadata.getModules() diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/ProviderInjectionIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/ProviderInjectionIT.java index 5c59117..e87abf9 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/ProviderInjectionIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/ProviderInjectionIT.java @@ -72,7 +72,7 @@ public class ProviderInjectionIT { .createRuntime(); @Test - public void testResponse() { + public void response() { WebTarget target = client .getInstance(HttpClientFactory.class) diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/ApiKeyHeaderAuthenticatorIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/ApiKeyHeaderAuthenticatorIT.java index fd25ffa..aca9f7d 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/ApiKeyHeaderAuthenticatorIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/ApiKeyHeaderAuthenticatorIT.java @@ -62,7 +62,7 @@ private WebTarget clientTarget(String name) { } @Test - public void testValidAuth() { + public void validAuth() { Response response = clientTarget("valid") .request() @@ -72,7 +72,7 @@ public void testValidAuth() { } @Test - public void testInvalidAuth() { + public void invalidAuth() { Response response = clientTarget("invalid") .request() @@ -82,7 +82,7 @@ public void testInvalidAuth() { } @Test - public void testCustomHeader() { + public void customHeader() { Response response = clientTarget("customValid") .request() diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/ApiKeyParameterAuthenticatorIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/ApiKeyParameterAuthenticatorIT.java index d663188..e8e3c8f 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/ApiKeyParameterAuthenticatorIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/ApiKeyParameterAuthenticatorIT.java @@ -65,7 +65,7 @@ private WebTarget startClient(String targetName) { } @Test - public void testValidAuth() { + public void validAuth() { Response response = startClient("valid") .request() .get(); @@ -74,7 +74,7 @@ public void testValidAuth() { } @Test - public void testValidAuthWithParams() { + public void validAuthWithParams() { Response response = startClient("valid") .queryParam("x", "y") .request() @@ -84,7 +84,7 @@ public void testValidAuthWithParams() { } @Test - public void testInvalidAuth() { + public void invalidAuth() { Response response = startClient("invalid") .request() .get(); @@ -93,7 +93,7 @@ public void testInvalidAuth() { } @Test - public void testCustomParameter() { + public void customParameter() { Response response = startClient("customValid") .request() diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/OAuth2AuthenticatorFactoryIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/OAuth2AuthenticatorFactoryIT.java index 8d8bf5c..ccea7a7 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/OAuth2AuthenticatorFactoryIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/OAuth2AuthenticatorFactoryIT.java @@ -62,7 +62,7 @@ private Injector clientStackInjector() { } @Test - public void testGetToken() { + public void getToken() { OAuth2AuthenticatorFactory factory = new OAuth2AuthenticatorFactory(); factory.setPassword("p"); @@ -78,7 +78,7 @@ public void testGetToken() { } @Test - public void testGetToken_Error() { + public void getToken_Error() { OAuth2AuthenticatorFactory factory = new OAuth2AuthenticatorFactory(); factory.setPassword("p"); @@ -89,7 +89,7 @@ public void testGetToken_Error() { } @Test - public void testGetWithToken() { + public void getWithToken() { OAuth2AuthenticatorFactory factory = new OAuth2AuthenticatorFactory(); factory.setPassword("p"); diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/OAuth2AuthenticatorFactory_ExpirationIT.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/OAuth2AuthenticatorFactory_ExpirationIT.java index b432543..d9b5cfa 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/OAuth2AuthenticatorFactory_ExpirationIT.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/OAuth2AuthenticatorFactory_ExpirationIT.java @@ -65,7 +65,7 @@ private Injector clientStackInjector() { } @Test - public void testGetWithToken() throws InterruptedException { + public void getWithToken() throws InterruptedException { OAuth2AuthenticatorFactory factory = new OAuth2AuthenticatorFactory(); factory.setPassword("p"); diff --git a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/OAuth2TokenTest.java b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/OAuth2TokenTest.java index 0e734ac..e646c45 100644 --- a/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/OAuth2TokenTest.java +++ b/bootique-jersey-jakarta-client/src/test/java/io/bootique/jersey/client/auth/OAuth2TokenTest.java @@ -32,14 +32,14 @@ public class OAuth2TokenTest { @Test - public void testExpiredToken() { + public void expiredToken() { OAuth2Token token = OAuth2Token.expiredToken(); assertNotNull(token); assertTrue(token.needsRefresh()); } @Test - public void testToken() { + public void token() { OAuth2Token token = OAuth2Token.token("abcd", LocalDateTime.now().plusDays(1)); assertNotNull(token); assertFalse(token.needsRefresh()); diff --git a/bootique-jersey-jakarta-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJacksonIT.java b/bootique-jersey-jakarta-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJacksonIT.java index 233d96c..1a6ee31 100644 --- a/bootique-jersey-jakarta-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJacksonIT.java +++ b/bootique-jersey-jakarta-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJacksonIT.java @@ -46,13 +46,13 @@ public class BQJerseyJacksonIT { .createRuntime(); @Test - public void testJacksonSerialization() { + public void jacksonSerialization() { Response r = jetty.getTarget().request().get(); JettyTester.assertOk(r).assertContent("{\"p1\":\"s\",\"p2\":45,\"ts\":\"2020-01-02T03:04:05\"}"); } @Test - public void testJacksonDeserialization() { + public void jacksonDeserialization() { String entity = "{\"p1\":\"xx\",\"p2\":55,\"ts\":\"2021-01-02T01:04:05\"}"; Response r = jetty.getTarget().request().put(Entity.entity(entity, MediaType.APPLICATION_JSON_TYPE)); JettyTester.assertOk(r).assertContent(entity); diff --git a/bootique-jersey-jakarta-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJackson_JsonSerializerIT.java b/bootique-jersey-jakarta-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJackson_JsonSerializerIT.java index a5e8701..c4b6706 100644 --- a/bootique-jersey-jakarta-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJackson_JsonSerializerIT.java +++ b/bootique-jersey-jakarta-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJackson_JsonSerializerIT.java @@ -49,7 +49,7 @@ public class BQJerseyJackson_JsonSerializerIT { .createRuntime(); @Test - public void testJacksonSerialization() { + public void jacksonSerialization() { Response r = jetty.getTarget().request().get(); JettyTester.assertOk(r).assertContent("{\"p1\":\"s\",\"x\":\"xxxxx\"}"); } diff --git a/bootique-jersey-jakarta-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJackson_NullsIT.java b/bootique-jersey-jakarta-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJackson_NullsIT.java index b61615e..1f1960a 100644 --- a/bootique-jersey-jakarta-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJackson_NullsIT.java +++ b/bootique-jersey-jakarta-jackson/src/test/java/io/bootique/jersey/jackson/BQJerseyJackson_NullsIT.java @@ -62,7 +62,7 @@ protected WebTarget startServer(BQModule... modules) { } @Test - public void testPrintNulls() { + public void printNulls() { WebTarget target = startServer(b -> JerseyModule.extend(b).addResource(JsonResource.class)); @@ -72,7 +72,7 @@ public void testPrintNulls() { } @Test - public void testIgnoreNulls() { + public void ignoreNulls() { WebTarget target = startServer( b -> JerseyModule.extend(b).addResource(JsonResource.class), diff --git a/bootique-jersey-jakarta-jackson/src/test/java/io/bootique/jersey/jackson/JerseyJacksonModuleTest.java b/bootique-jersey-jakarta-jackson/src/test/java/io/bootique/jersey/jackson/JerseyJacksonModuleTest.java index 0f4eeec..86b806a 100644 --- a/bootique-jersey-jakarta-jackson/src/test/java/io/bootique/jersey/jackson/JerseyJacksonModuleTest.java +++ b/bootique-jersey-jakarta-jackson/src/test/java/io/bootique/jersey/jackson/JerseyJacksonModuleTest.java @@ -24,7 +24,7 @@ public class JerseyJacksonModuleTest { @Test - public void testAutoLoad() { + public void autoLoad() { BQModuleProviderChecker.testAutoLoadable(JerseyJacksonModule.class); } } diff --git a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/CustomDynamicFeaturesIT.java b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/CustomDynamicFeaturesIT.java index f7607cf..0efdfbd 100644 --- a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/CustomDynamicFeaturesIT.java +++ b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/CustomDynamicFeaturesIT.java @@ -40,7 +40,7 @@ public class CustomDynamicFeaturesIT { final BQTestFactory testFactory = new BQTestFactory().autoLoadModules(); @Test - public void testFeaturesLoaded() { + public void featuresLoaded() { testFactory.app("-s") .module(b -> JerseyModule diff --git a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/CustomFeaturesIT.java b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/CustomFeaturesIT.java index 5b6e37e..fb7104c 100644 --- a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/CustomFeaturesIT.java +++ b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/CustomFeaturesIT.java @@ -36,7 +36,7 @@ public class CustomFeaturesIT { final BQTestFactory testFactory = new BQTestFactory().autoLoadModules(); @Test - public void testFeaturesLoaded() { + public void featuresLoaded() { testFactory.app("-s") .module(b -> JerseyModule.extend(b).addFeature(Feature1.class).addFeature(Feature2.class)) diff --git a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ExceptionMapperIT.java b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ExceptionMapperIT.java index 4461cac..51133a0 100644 --- a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ExceptionMapperIT.java +++ b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ExceptionMapperIT.java @@ -44,13 +44,13 @@ public class ExceptionMapperIT { .createRuntime(); @Test - public void testCustomExceptionMapper() { + public void customExceptionMapper() { Response r = jetty.getTarget().path("my-exception").queryParam("q", "p").request().get(); JettyTester.assertBadRequest(r).assertContent("E:p"); } @Test - public void testDefaultExceptionMapper() { + public void defaultExceptionMapper() { Response r = jetty.getTarget().path("web-exception").queryParam("q", "p").request().get(); JettyTester.assertStatus(r, 500); } diff --git a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/JerseyModuleIT.java b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/JerseyModuleIT.java index 544cd69..0126884 100644 --- a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/JerseyModuleIT.java +++ b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/JerseyModuleIT.java @@ -41,7 +41,7 @@ public class JerseyModuleIT { final BQTestFactory testFactory = new BQTestFactory().autoLoadModules(); @Test - public void testDefaultContents() { + public void defaultContents() { BQRuntime runtime = testFactory.app().createRuntime(); assertNotNull(runtime.getInstance(ResourceConfig.class)); @@ -53,7 +53,7 @@ public void testDefaultContents() { } @Test - public void testProperties() { + public void properties() { BQRuntime runtime = testFactory.app() .autoLoadModules() @@ -65,7 +65,7 @@ public void testProperties() { } @Test - public void testNoResourcesModule() { + public void noResourcesModule() { BQRuntime runtime = testFactory.app().module(JerseyModule.class).createRuntime(); assertNotNull(runtime.getInstance(ResourceConfig.class)); } diff --git a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/JerseyModuleProviderIT.java b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/JerseyModuleProviderIT.java index 5533760..419ca29 100644 --- a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/JerseyModuleProviderIT.java +++ b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/JerseyModuleProviderIT.java @@ -33,12 +33,12 @@ public class JerseyModuleProviderIT { final BQTestFactory testFactory = new BQTestFactory(); @Test - public void testAutoLoadable() { + public void autoLoadable() { BQModuleProviderChecker.testAutoLoadable(JerseyModuleProvider.class); } @Test - public void testModuleDeclaresDependencies() { + public void moduleDeclaresDependencies() { BQRuntime bqRuntime = testFactory.app().moduleProvider(new JerseyModuleProvider()).createRuntime(); BQRuntimeChecker.testModulesLoaded(bqRuntime, JettyModule.class, diff --git a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/JerseyServletFactoryTest.java b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/JerseyServletFactoryTest.java index 0a1278a..ee3ac9e 100644 --- a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/JerseyServletFactoryTest.java +++ b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/JerseyServletFactoryTest.java @@ -26,7 +26,7 @@ public class JerseyServletFactoryTest { @Test - public void testNormalizeAppPath() { + public void normalizeAppPath() { JerseyServletFactory f = new JerseyServletFactory(); assertEquals("/*", f.normalizeAppPath("")); diff --git a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/MessageBodyReaderIT.java b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/MessageBodyReaderIT.java index 6f7cb38..62100ce 100644 --- a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/MessageBodyReaderIT.java +++ b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/MessageBodyReaderIT.java @@ -73,7 +73,7 @@ protected WebTarget startServer(BQModule... modules) { } @Test - public void testReaderWithContextInjection() { + public void readerWithContextInjection() { WebTarget client = startServer(b -> JerseyModule.extend(b) .addResource(Resource.class) @@ -88,7 +88,7 @@ public void testReaderWithContextInjection() { } @Test - public void testReaderWithBqInjection() { + public void readerWithBqInjection() { WebTarget client = startServer( b -> JerseyModule.extend(b) .addResource(Resource.class) @@ -100,7 +100,7 @@ public void testReaderWithBqInjection() { } @Test - public void testReaderWithDynamicBqInjection() { + public void readerWithDynamicBqInjection() { WebTarget client = startServer( b -> JerseyModule.extend(b) .addResource(Resource.class) @@ -111,7 +111,7 @@ public void testReaderWithDynamicBqInjection() { } @Test - public void testReaderWithAllInjections() { + public void readerWithAllInjections() { WebTarget client = startServer( b -> JerseyModule.extend(b) .addResource(Resource.class) diff --git a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/MultiPartFeatureIT.java b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/MultiPartFeatureIT.java index 0072306..14631b5 100644 --- a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/MultiPartFeatureIT.java +++ b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/MultiPartFeatureIT.java @@ -63,7 +63,7 @@ public class MultiPartFeatureIT { .target(jetty.getUrl()); @Test - public void testResponse() { + public void response() { FormDataBodyPart part = new FormDataBodyPart("upload", "I am a part", MediaType.TEXT_PLAIN_TYPE); FormDataMultiPart multipart = new FormDataMultiPart(); diff --git a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ParamConvertersIT.java b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ParamConvertersIT.java index ab9fa17..ea206e5 100644 --- a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ParamConvertersIT.java +++ b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ParamConvertersIT.java @@ -47,31 +47,31 @@ public class ParamConvertersIT { .createRuntime(); @Test - public void testYearConverter() { + public void yearConverter() { Response r = jetty.getTarget().path("year/2019").request().get(); JettyTester.assertOk(r).assertContent("[2019]"); } @Test - public void testYearMonthConverter() { + public void yearMonthConverter() { Response r = jetty.getTarget().path("year-month/2019-05").request().get(); JettyTester.assertOk(r).assertContent("[2019-05]"); } @Test - public void testDateConverter() { + public void dateConverter() { Response r = jetty.getTarget().path("date/2020-02-03").request().get(); JettyTester.assertOk(r).assertContent("[2020-02-03]"); } @Test - public void testTimeConverter() { + public void timeConverter() { Response r = jetty.getTarget().path("time/12:00:01").request().get(); JettyTester.assertOk(r).assertContent("[12:00:01]"); } @Test - public void testDateTimeConverter() { + public void dateTimeConverter() { Response r = jetty.getTarget().path("datetime/2020-02-03T12:00:01").request().get(); JettyTester.assertOk(r).assertContent("[2020-02-03T12:00:01]"); } diff --git a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ParamConverters_OverridesIT.java b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ParamConverters_OverridesIT.java index b4a723c..635811a 100644 --- a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ParamConverters_OverridesIT.java +++ b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ParamConverters_OverridesIT.java @@ -54,19 +54,19 @@ public class ParamConverters_OverridesIT { .createRuntime(); @Test - public void testDateConverter() { + public void dateConverter() { Response r = jetty.getTarget().path("date/2020-02-03").request().get(); JettyTester.assertOk(r).assertContent("[2020-02-02]"); } @Test - public void testTimeConverter() { + public void timeConverter() { Response r = jetty.getTarget().path("time/12:00:02").request().get(); JettyTester.assertOk(r).assertContent("[12:00:01]"); } @Test - public void testDateTimeConverter() { + public void dateTimeConverter() { Response r = jetty.getTarget().path("datetime/2020-02-03T12:00:02").request().get(); JettyTester.assertOk(r).assertContent("[2020-02-02T12:00:01]"); } diff --git a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ProviderInjectionIT.java b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ProviderInjectionIT.java index a7060da..8121e54 100644 --- a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ProviderInjectionIT.java +++ b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ProviderInjectionIT.java @@ -58,7 +58,7 @@ public class ProviderInjectionIT { .createRuntime(); @Test - public void testResponse() { + public void response() { WebTarget client = jetty.getTarget(); diff --git a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ResourceInjectionIT.java b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ResourceInjectionIT.java index b17bddd..75efeda 100644 --- a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ResourceInjectionIT.java +++ b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ResourceInjectionIT.java @@ -70,7 +70,7 @@ public void before() { } @Test - public void testFieldInjected() { + public void fieldInjected() { Response r1 = jetty.getTarget().path("f").request().get(); assertEquals(Response.Status.OK.getStatusCode(), r1.getStatus()); @@ -84,7 +84,7 @@ public void testFieldInjected() { } @Test - public void testConstructorInjected() { + public void constructorInjected() { Response r1 = jetty.getTarget().path("c").request().get(); assertEquals(Response.Status.OK.getStatusCode(), r1.getStatus()); @@ -98,7 +98,7 @@ public void testConstructorInjected() { } @Test - public void testProviderForResource() { + public void providerForResource() { Response r1 = jetty.getTarget().path("u").request().get(); assertEquals(Response.Status.OK.getStatusCode(), r1.getStatus()); diff --git a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ResourceInjection_GenericsIT.java b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ResourceInjection_GenericsIT.java index 04024d2..567c0d0 100644 --- a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ResourceInjection_GenericsIT.java +++ b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ResourceInjection_GenericsIT.java @@ -68,7 +68,7 @@ protected WebTarget startServer(BQModule... modules) { } @Test - public void testFieldInjected() { + public void fieldInjected() { WebTarget client = startServer(b -> { b.bind(Key.get(new TypeLiteral>() { @@ -83,7 +83,7 @@ public void testFieldInjected() { } @Test - public void testInjectedWildcard() { + public void injectedWildcard() { WebTarget client = startServer(b -> { b.bind(Key.get(new TypeLiteral>() { @@ -96,7 +96,7 @@ public void testInjectedWildcard() { } @Test - public void testInjectedExtendedWildcard() { + public void injectedExtendedWildcard() { WebTarget client = startServer(b -> { b.bind(Key.get(new TypeLiteral>() { @@ -109,7 +109,7 @@ public void testInjectedExtendedWildcard() { } @Test - public void testInjectedArray() { + public void injectedArray() { WebTarget client = startServer(b -> { b.bind(String[].class).toInstance(STRING_ARRAY_BOUND); @@ -123,7 +123,7 @@ public void testInjectedArray() { } @Test - public void testUnInjected() { + public void unInjected() { WebTarget client = startServer( new UninjectedModule(), @@ -140,7 +140,7 @@ public void testUnInjected() { } @Test - public void testUnInjectedWildcard() { + public void unInjectedWildcard() { WebTarget client = startServer( new UninjectedResourceWildcardModule(), @@ -155,7 +155,7 @@ public void testUnInjectedWildcard() { } @Test - public void testUnInjectedExtendedWildcard() { + public void unInjectedExtendedWildcard() { WebTarget client = startServer( new UninjectedResourceWildcardModule(), @@ -170,7 +170,7 @@ public void testUnInjectedExtendedWildcard() { } @Test - public void testUnInjectedArray() { + public void unInjectedArray() { WebTarget client = startServer( new UninjectedResourceArrayModule(), diff --git a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ResourceMappingIT.java b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ResourceMappingIT.java index f8be548..e6d3e06 100644 --- a/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ResourceMappingIT.java +++ b/bootique-jersey-jakarta/src/test/java/io/bootique/jersey/ResourceMappingIT.java @@ -66,25 +66,25 @@ public class ResourceMappingIT { .createRuntime(); @Test - public void testAsInstance() { + public void asInstance() { Response r = jetty.getTarget().path("as_instance").request().get(); JettyTester.assertOk(r).assertContent("as instance resource - xxx"); } @Test - public void testAsType() { + public void asType() { Response r = jetty.getTarget().path("as_type").request().get(); JettyTester.assertOk(r).assertContent("as type resource"); } @Test - public void testAsType_OverriddenPath() { + public void asType_OverriddenPath() { Response r = jetty.getTarget().path("as_type_explicit_path").request().get(); JettyTester.assertOk(r).assertContent("as type path override resource: as_type_explicit_path"); } @Test - public void testAsType_MultipleOverriddenPaths() { + public void asType_MultipleOverriddenPaths() { Response r1 = jetty.getTarget().path("as_type_explicit_path1").request().get(); JettyTester.assertOk(r1).assertContent("as type path override resource multiplied: as_type_explicit_path1"); @@ -93,13 +93,13 @@ public void testAsType_MultipleOverriddenPaths() { } @Test - public void testDIManaged_OverriddenPath() { + public void dIManaged_OverriddenPath() { Response r = jetty.getTarget().path("di_managed_explicit_path").request().get(); JettyTester.assertOk(r).assertContent("di managed path override resource: DILABEL"); } @Test - public void testMapped_MultipleOverriddenPaths() { + public void mapped_MultipleOverriddenPaths() { Response r1 = jetty.getTarget().path("mapped_explicit_path1").request().get(); JettyTester.assertOk(r1).assertContent("mapped path override resource: MAPPEDLABEL"); @@ -108,7 +108,7 @@ public void testMapped_MultipleOverriddenPaths() { } @Test - public void testAsType_OverriddenPath_AnnotationPathIgnored() { + public void asType_OverriddenPath_AnnotationPathIgnored() { Response r1 = jetty.getTarget().path("as_type_annotation_path").request().get(); JettyTester.assertNotFound(r1); diff --git a/bootique-jersey/src/test/java/io/bootique/jersey/CustomDynamicFeaturesIT.java b/bootique-jersey/src/test/java/io/bootique/jersey/CustomDynamicFeaturesIT.java index c061887..759ac9e 100644 --- a/bootique-jersey/src/test/java/io/bootique/jersey/CustomDynamicFeaturesIT.java +++ b/bootique-jersey/src/test/java/io/bootique/jersey/CustomDynamicFeaturesIT.java @@ -40,7 +40,7 @@ public class CustomDynamicFeaturesIT { final BQTestFactory testFactory = new BQTestFactory().autoLoadModules(); @Test - public void testFeaturesLoaded() { + public void featuresLoaded() { testFactory.app("-s") .module(b -> JerseyModule diff --git a/bootique-jersey/src/test/java/io/bootique/jersey/CustomFeaturesIT.java b/bootique-jersey/src/test/java/io/bootique/jersey/CustomFeaturesIT.java index 1a1cfad..dfc5711 100644 --- a/bootique-jersey/src/test/java/io/bootique/jersey/CustomFeaturesIT.java +++ b/bootique-jersey/src/test/java/io/bootique/jersey/CustomFeaturesIT.java @@ -36,7 +36,7 @@ public class CustomFeaturesIT { final BQTestFactory testFactory = new BQTestFactory().autoLoadModules(); @Test - public void testFeaturesLoaded() { + public void featuresLoaded() { testFactory.app("-s") .module(b -> JerseyModule.extend(b).addFeature(Feature1.class).addFeature(Feature2.class)) diff --git a/bootique-jersey/src/test/java/io/bootique/jersey/ExceptionMapperIT.java b/bootique-jersey/src/test/java/io/bootique/jersey/ExceptionMapperIT.java index f7bfb1b..2d44d3e 100644 --- a/bootique-jersey/src/test/java/io/bootique/jersey/ExceptionMapperIT.java +++ b/bootique-jersey/src/test/java/io/bootique/jersey/ExceptionMapperIT.java @@ -45,13 +45,13 @@ public class ExceptionMapperIT { .createRuntime(); @Test - public void testCustomExceptionMapper() { + public void customExceptionMapper() { Response r = jetty.getTarget().path("my-exception").queryParam("q", "p").request().get(); JettyTester.assertBadRequest(r).assertContent("E:p"); } @Test - public void testDefaultExceptionMapper() { + public void defaultExceptionMapper() { Response r = jetty.getTarget().path("web-exception").queryParam("q", "p").request().get(); JettyTester.assertStatus(r, 500); } diff --git a/bootique-jersey/src/test/java/io/bootique/jersey/JerseyModuleIT.java b/bootique-jersey/src/test/java/io/bootique/jersey/JerseyModuleIT.java index ae96a1a..918b5c4 100644 --- a/bootique-jersey/src/test/java/io/bootique/jersey/JerseyModuleIT.java +++ b/bootique-jersey/src/test/java/io/bootique/jersey/JerseyModuleIT.java @@ -40,7 +40,7 @@ public class JerseyModuleIT { final BQTestFactory testFactory = new BQTestFactory().autoLoadModules(); @Test - public void testDefaultContents() { + public void defaultContents() { BQRuntime runtime = testFactory.app().createRuntime(); assertNotNull(runtime.getInstance(ResourceConfig.class)); @@ -52,7 +52,7 @@ public void testDefaultContents() { } @Test - public void testProperties() { + public void properties() { BQRuntime runtime = testFactory.app() .autoLoadModules() @@ -64,7 +64,7 @@ public void testProperties() { } @Test - public void testNoResourcesModule() { + public void noResourcesModule() { BQRuntime runtime = testFactory.app().module(JerseyModule.class).createRuntime(); assertNotNull(runtime.getInstance(ResourceConfig.class)); } diff --git a/bootique-jersey/src/test/java/io/bootique/jersey/JerseyModuleProviderIT.java b/bootique-jersey/src/test/java/io/bootique/jersey/JerseyModuleProviderIT.java index 72e8031..9a6c5fd 100644 --- a/bootique-jersey/src/test/java/io/bootique/jersey/JerseyModuleProviderIT.java +++ b/bootique-jersey/src/test/java/io/bootique/jersey/JerseyModuleProviderIT.java @@ -31,12 +31,12 @@ public class JerseyModuleProviderIT { final BQTestFactory testFactory = new BQTestFactory(); @Test - public void testAutoLoadable() { + public void autoLoadable() { BQModuleProviderChecker.testAutoLoadable(JerseyModuleProvider.class); } @Test - public void testModuleDeclaresDependencies() { + public void moduleDeclaresDependencies() { BQRuntime bqRuntime = testFactory.app().moduleProvider(new JerseyModuleProvider()).createRuntime(); BQRuntimeChecker.testModulesLoaded(bqRuntime, JettyModule.class, diff --git a/bootique-jersey/src/test/java/io/bootique/jersey/JerseyServletFactoryTest.java b/bootique-jersey/src/test/java/io/bootique/jersey/JerseyServletFactoryTest.java index a669d64..ec5e3cb 100644 --- a/bootique-jersey/src/test/java/io/bootique/jersey/JerseyServletFactoryTest.java +++ b/bootique-jersey/src/test/java/io/bootique/jersey/JerseyServletFactoryTest.java @@ -25,7 +25,7 @@ public class JerseyServletFactoryTest { @Test - public void testNormalizeAppPath() { + public void normalizeAppPath() { JerseyServletFactory f = new JerseyServletFactory(); assertEquals("/*", f.normalizeAppPath("")); diff --git a/bootique-jersey/src/test/java/io/bootique/jersey/MessageBodyReaderIT.java b/bootique-jersey/src/test/java/io/bootique/jersey/MessageBodyReaderIT.java index eee1f76..01c6e65 100644 --- a/bootique-jersey/src/test/java/io/bootique/jersey/MessageBodyReaderIT.java +++ b/bootique-jersey/src/test/java/io/bootique/jersey/MessageBodyReaderIT.java @@ -72,7 +72,7 @@ protected WebTarget startServer(BQModule... modules) { } @Test - public void testReaderWithContextInjection() { + public void readerWithContextInjection() { WebTarget client = startServer(b -> JerseyModule.extend(b) .addResource(Resource.class) @@ -87,7 +87,7 @@ public void testReaderWithContextInjection() { } @Test - public void testReaderWithBqInjection() { + public void readerWithBqInjection() { WebTarget client = startServer( b -> JerseyModule.extend(b) .addResource(Resource.class) @@ -99,7 +99,7 @@ public void testReaderWithBqInjection() { } @Test - public void testReaderWithDynamicBqInjection() { + public void readerWithDynamicBqInjection() { WebTarget client = startServer( b -> JerseyModule.extend(b) .addResource(Resource.class) @@ -110,7 +110,7 @@ public void testReaderWithDynamicBqInjection() { } @Test - public void testReaderWithAllInjections() { + public void readerWithAllInjections() { WebTarget client = startServer( b -> JerseyModule.extend(b) .addResource(Resource.class) diff --git a/bootique-jersey/src/test/java/io/bootique/jersey/MultiPartFeatureIT.java b/bootique-jersey/src/test/java/io/bootique/jersey/MultiPartFeatureIT.java index b0fb8dc..b3fcc1f 100644 --- a/bootique-jersey/src/test/java/io/bootique/jersey/MultiPartFeatureIT.java +++ b/bootique-jersey/src/test/java/io/bootique/jersey/MultiPartFeatureIT.java @@ -63,7 +63,7 @@ public class MultiPartFeatureIT { .target(jetty.getUrl()); @Test - public void testResponse() { + public void response() { FormDataBodyPart part = new FormDataBodyPart("upload", "I am a part", MediaType.TEXT_PLAIN_TYPE); FormDataMultiPart multipart = new FormDataMultiPart(); diff --git a/bootique-jersey/src/test/java/io/bootique/jersey/ParamConvertersIT.java b/bootique-jersey/src/test/java/io/bootique/jersey/ParamConvertersIT.java index a32702f..e3e1e58 100644 --- a/bootique-jersey/src/test/java/io/bootique/jersey/ParamConvertersIT.java +++ b/bootique-jersey/src/test/java/io/bootique/jersey/ParamConvertersIT.java @@ -47,31 +47,31 @@ public class ParamConvertersIT { .createRuntime(); @Test - public void testYearConverter() { + public void yearConverter() { Response r = jetty.getTarget().path("year/2019").request().get(); JettyTester.assertOk(r).assertContent("[2019]"); } @Test - public void testYearMonthConverter() { + public void yearMonthConverter() { Response r = jetty.getTarget().path("year-month/2019-05").request().get(); JettyTester.assertOk(r).assertContent("[2019-05]"); } @Test - public void testDateConverter() { + public void dateConverter() { Response r = jetty.getTarget().path("date/2020-02-03").request().get(); JettyTester.assertOk(r).assertContent("[2020-02-03]"); } @Test - public void testTimeConverter() { + public void timeConverter() { Response r = jetty.getTarget().path("time/12:00:01").request().get(); JettyTester.assertOk(r).assertContent("[12:00:01]"); } @Test - public void testDateTimeConverter() { + public void dateTimeConverter() { Response r = jetty.getTarget().path("datetime/2020-02-03T12:00:01").request().get(); JettyTester.assertOk(r).assertContent("[2020-02-03T12:00:01]"); } diff --git a/bootique-jersey/src/test/java/io/bootique/jersey/ParamConverters_OverridesIT.java b/bootique-jersey/src/test/java/io/bootique/jersey/ParamConverters_OverridesIT.java index 9428d52..d0c6082 100644 --- a/bootique-jersey/src/test/java/io/bootique/jersey/ParamConverters_OverridesIT.java +++ b/bootique-jersey/src/test/java/io/bootique/jersey/ParamConverters_OverridesIT.java @@ -54,19 +54,19 @@ public class ParamConverters_OverridesIT { .createRuntime(); @Test - public void testDateConverter() { + public void dateConverter() { Response r = jetty.getTarget().path("date/2020-02-03").request().get(); JettyTester.assertOk(r).assertContent("[2020-02-02]"); } @Test - public void testTimeConverter() { + public void timeConverter() { Response r = jetty.getTarget().path("time/12:00:02").request().get(); JettyTester.assertOk(r).assertContent("[12:00:01]"); } @Test - public void testDateTimeConverter() { + public void dateTimeConverter() { Response r = jetty.getTarget().path("datetime/2020-02-03T12:00:02").request().get(); JettyTester.assertOk(r).assertContent("[2020-02-02T12:00:01]"); } diff --git a/bootique-jersey/src/test/java/io/bootique/jersey/ProviderInjectionIT.java b/bootique-jersey/src/test/java/io/bootique/jersey/ProviderInjectionIT.java index a2d175d..672706c 100644 --- a/bootique-jersey/src/test/java/io/bootique/jersey/ProviderInjectionIT.java +++ b/bootique-jersey/src/test/java/io/bootique/jersey/ProviderInjectionIT.java @@ -58,7 +58,7 @@ public class ProviderInjectionIT { .createRuntime(); @Test - public void testResponse() { + public void response() { WebTarget client = jetty.getTarget(); diff --git a/bootique-jersey/src/test/java/io/bootique/jersey/ResourceInjectionIT.java b/bootique-jersey/src/test/java/io/bootique/jersey/ResourceInjectionIT.java index 9995eb0..0531df7 100644 --- a/bootique-jersey/src/test/java/io/bootique/jersey/ResourceInjectionIT.java +++ b/bootique-jersey/src/test/java/io/bootique/jersey/ResourceInjectionIT.java @@ -70,7 +70,7 @@ public void before() { } @Test - public void testFieldInjected() { + public void fieldInjected() { Response r1 = jetty.getTarget().path("f").request().get(); assertEquals(Status.OK.getStatusCode(), r1.getStatus()); @@ -84,7 +84,7 @@ public void testFieldInjected() { } @Test - public void testConstructorInjected() { + public void constructorInjected() { Response r1 = jetty.getTarget().path("c").request().get(); assertEquals(Status.OK.getStatusCode(), r1.getStatus()); @@ -98,7 +98,7 @@ public void testConstructorInjected() { } @Test - public void testProviderForResource() { + public void providerForResource() { Response r1 = jetty.getTarget().path("u").request().get(); assertEquals(Status.OK.getStatusCode(), r1.getStatus()); diff --git a/bootique-jersey/src/test/java/io/bootique/jersey/ResourceInjection_GenericsIT.java b/bootique-jersey/src/test/java/io/bootique/jersey/ResourceInjection_GenericsIT.java index 7f9d895..57b459f 100644 --- a/bootique-jersey/src/test/java/io/bootique/jersey/ResourceInjection_GenericsIT.java +++ b/bootique-jersey/src/test/java/io/bootique/jersey/ResourceInjection_GenericsIT.java @@ -68,7 +68,7 @@ protected WebTarget startServer(BQModule... modules) { } @Test - public void testFieldInjected() { + public void fieldInjected() { WebTarget client = startServer(b -> { b.bind(Key.get(new TypeLiteral>() { @@ -83,7 +83,7 @@ public void testFieldInjected() { } @Test - public void testInjectedWildcard() { + public void injectedWildcard() { WebTarget client = startServer(b -> { b.bind(Key.get(new TypeLiteral>() { @@ -96,7 +96,7 @@ public void testInjectedWildcard() { } @Test - public void testInjectedExtendedWildcard() { + public void injectedExtendedWildcard() { WebTarget client = startServer(b -> { b.bind(Key.get(new TypeLiteral>() { @@ -109,7 +109,7 @@ public void testInjectedExtendedWildcard() { } @Test - public void testInjectedArray() { + public void injectedArray() { WebTarget client = startServer(b -> { b.bind(String[].class).toInstance(STRING_ARRAY_BOUND); @@ -123,7 +123,7 @@ public void testInjectedArray() { } @Test - public void testUnInjected() { + public void unInjected() { WebTarget client = startServer( new UninjectedModule(), @@ -140,7 +140,7 @@ public void testUnInjected() { } @Test - public void testUnInjectedWildcard() { + public void unInjectedWildcard() { WebTarget client = startServer( new UninjectedResourceWildcardModule(), @@ -155,7 +155,7 @@ public void testUnInjectedWildcard() { } @Test - public void testUnInjectedExtendedWildcard() { + public void unInjectedExtendedWildcard() { WebTarget client = startServer( new UninjectedResourceWildcardModule(), @@ -170,7 +170,7 @@ public void testUnInjectedExtendedWildcard() { } @Test - public void testUnInjectedArray() { + public void unInjectedArray() { WebTarget client = startServer( new UninjectedResourceArrayModule(), diff --git a/bootique-jersey/src/test/java/io/bootique/jersey/ResourceMappingIT.java b/bootique-jersey/src/test/java/io/bootique/jersey/ResourceMappingIT.java index a7efe56..14a22be 100644 --- a/bootique-jersey/src/test/java/io/bootique/jersey/ResourceMappingIT.java +++ b/bootique-jersey/src/test/java/io/bootique/jersey/ResourceMappingIT.java @@ -64,25 +64,25 @@ public class ResourceMappingIT { .createRuntime(); @Test - public void testAsInstance() { + public void asInstance() { Response r = jetty.getTarget().path("as_instance").request().get(); JettyTester.assertOk(r).assertContent("as instance resource - xxx"); } @Test - public void testAsType() { + public void asType() { Response r = jetty.getTarget().path("as_type").request().get(); JettyTester.assertOk(r).assertContent("as type resource"); } @Test - public void testAsType_OverriddenPath() { + public void asType_OverriddenPath() { Response r = jetty.getTarget().path("as_type_explicit_path").request().get(); JettyTester.assertOk(r).assertContent("as type path override resource: as_type_explicit_path"); } @Test - public void testAsType_MultipleOverriddenPaths() { + public void asType_MultipleOverriddenPaths() { Response r1 = jetty.getTarget().path("as_type_explicit_path1").request().get(); JettyTester.assertOk(r1).assertContent("as type path override resource multiplied: as_type_explicit_path1"); @@ -91,13 +91,13 @@ public void testAsType_MultipleOverriddenPaths() { } @Test - public void testDIManaged_OverriddenPath() { + public void dIManaged_OverriddenPath() { Response r = jetty.getTarget().path("di_managed_explicit_path").request().get(); JettyTester.assertOk(r).assertContent("di managed path override resource: DILABEL"); } @Test - public void testMapped_MultipleOverriddenPaths() { + public void mapped_MultipleOverriddenPaths() { Response r1 = jetty.getTarget().path("mapped_explicit_path1").request().get(); JettyTester.assertOk(r1).assertContent("mapped path override resource: MAPPEDLABEL"); @@ -106,7 +106,7 @@ public void testMapped_MultipleOverriddenPaths() { } @Test - public void testAsType_OverriddenPath_AnnotationPathIgnored() { + public void asType_OverriddenPath_AnnotationPathIgnored() { Response r1 = jetty.getTarget().path("as_type_annotation_path").request().get(); JettyTester.assertNotFound(r1);