mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 17:59:03 +00:00
Polish "Migrate LogbackLoggingSystemTests to JUnit 5"
See gh-17107
This commit is contained in:
+3
-3
@@ -38,18 +38,18 @@ public abstract class AbstractLoggingSystemTests {
|
||||
private String originalTempFolder;
|
||||
|
||||
@BeforeEach
|
||||
public void configureTempDir(@TempDir Path temp) {
|
||||
void configureTempDir(@TempDir Path temp) {
|
||||
this.originalTempFolder = System.getProperty(JAVA_IO_TMPDIR);
|
||||
System.setProperty(JAVA_IO_TMPDIR, temp.toAbsolutePath().toString());
|
||||
}
|
||||
|
||||
@AfterEach
|
||||
public void reinstateTempDir() {
|
||||
void reinstateTempDir() {
|
||||
System.setProperty(JAVA_IO_TMPDIR, this.originalTempFolder);
|
||||
}
|
||||
|
||||
@AfterEach
|
||||
public void clear() {
|
||||
void clear() {
|
||||
System.clearProperty(LoggingSystemProperties.LOG_FILE);
|
||||
System.clearProperty(LoggingSystemProperties.PID_KEY);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user