File tree Expand file tree Collapse file tree
src/test/java/nl/altindag/log Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -375,11 +375,13 @@ import static org.assertj.core.api.Assertions.assertThat;
375375
376376import nl.altindag.log.LogCaptor ;
377377import org.junit.jupiter.api.AfterAll ;
378+ import org.junit.jupiter.api.AutoClose ;
378379import org.junit.jupiter.api.BeforeAll ;
379380import org.junit.jupiter.api.Test ;
380381
381382public class FooServiceShould {
382383
384+ @AutoClose
383385 private static LogCaptor logCaptorForSomeOtherService = LogCaptor . forClass(SomeService . class);
384386
385387 @BeforeAll
Original file line number Diff line number Diff line change 5050import nl .altindag .log .service .slfj4 .ServiceWithSlf4jAndMdcHeaders ;
5151import nl .altindag .log .service .slfj4 .ServiceWithSlf4jWhileUsingKeyValuePairs ;
5252import org .junit .jupiter .api .AfterEach ;
53+ import org .junit .jupiter .api .AutoClose ;
5354import org .junit .jupiter .api .Nested ;
5455import org .junit .jupiter .api .Test ;
5556import org .junit .jupiter .api .extension .ExtendWith ;
8687@ ExtendWith (MockitoExtension .class )
8788class LogCaptorShould {
8889
90+ @ AutoClose
8991 private LogCaptor logCaptor ;
9092
9193 @ AfterEach
You can’t perform that action at this time.
0 commit comments