Remove public modifier on JUnit5 lifecycle methods
See gh-17292
This commit is contained in:
@@ -32,12 +32,12 @@ class SampleProfileApplicationTests {
|
||||
private String profiles;
|
||||
|
||||
@BeforeEach
|
||||
public void before() {
|
||||
void before() {
|
||||
this.profiles = System.getProperty("spring.profiles.active");
|
||||
}
|
||||
|
||||
@AfterEach
|
||||
public void after() {
|
||||
void after() {
|
||||
if (this.profiles != null) {
|
||||
System.setProperty("spring.profiles.active", this.profiles);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user