Correct visibility of JUnit 5 lifecycle methods in smoke tests
See gh-17292
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user