diff --git a/spring-boot-smoke-tests/spring-boot-smoke-test-oauth2-resource-server/src/test/java/smoketest/oauth2/resource/SampleOauth2ResourceServerApplicationTests.java b/spring-boot-smoke-tests/spring-boot-smoke-test-oauth2-resource-server/src/test/java/smoketest/oauth2/resource/SampleOauth2ResourceServerApplicationTests.java index 439eb710b6..ab3e5dc0ae 100644 --- a/spring-boot-smoke-tests/spring-boot-smoke-test-oauth2-resource-server/src/test/java/smoketest/oauth2/resource/SampleOauth2ResourceServerApplicationTests.java +++ b/spring-boot-smoke-tests/spring-boot-smoke-test-oauth2-resource-server/src/test/java/smoketest/oauth2/resource/SampleOauth2ResourceServerApplicationTests.java @@ -50,7 +50,7 @@ class SampleOauth2ResourceServerApplicationTests { private TestRestTemplate restTemplate; @BeforeAll - public static void setup() throws Exception { + static void setup() throws Exception { server.start(); String url = server.url("/.well-known/jwks.json").toString(); server.enqueue(mockResponse()); @@ -58,7 +58,7 @@ class SampleOauth2ResourceServerApplicationTests { } @AfterAll - public static void shutdown() throws IOException { + static void shutdown() throws IOException { server.shutdown(); System.clearProperty("spring.security.oauth2.resourceserver.jwt.jwk-set-uri"); } diff --git a/spring-boot-smoke-tests/spring-boot-smoke-test-reactive-oauth2-resource-server/src/test/java/smoketest/oauth2/resource/SampleReactiveOAuth2ResourceServerApplicationTests.java b/spring-boot-smoke-tests/spring-boot-smoke-test-reactive-oauth2-resource-server/src/test/java/smoketest/oauth2/resource/SampleReactiveOAuth2ResourceServerApplicationTests.java index 6a65f728a6..57eaed7e91 100644 --- a/spring-boot-smoke-tests/spring-boot-smoke-test-reactive-oauth2-resource-server/src/test/java/smoketest/oauth2/resource/SampleReactiveOAuth2ResourceServerApplicationTests.java +++ b/spring-boot-smoke-tests/spring-boot-smoke-test-reactive-oauth2-resource-server/src/test/java/smoketest/oauth2/resource/SampleReactiveOAuth2ResourceServerApplicationTests.java @@ -43,7 +43,7 @@ class SampleReactiveOAuth2ResourceServerApplicationTests { + "R44vmRqS5ncrF-1R0EGcPX49U6A"; @BeforeAll - public static void setup() throws Exception { + static void setup() throws Exception { server.start(); String url = server.url("/.well-known/jwks.json").toString(); server.enqueue(mockResponse()); @@ -51,7 +51,7 @@ class SampleReactiveOAuth2ResourceServerApplicationTests { } @AfterAll - public static void shutdown() throws Exception { + static void shutdown() throws Exception { server.shutdown(); System.clearProperty("spring.security.oauth2.resourceserver.jwt.jwk-set-uri"); }