1616 */
1717package org .apache .logging .log4j .jpl ;
1818
19+ import static org .hamcrest .MatcherAssert .assertThat ;
1920import static org .hamcrest .Matchers .equalTo ;
2021import static org .hamcrest .Matchers .hasSize ;
2122import static org .hamcrest .Matchers .instanceOf ;
22- import static org .junit .Assert .assertEquals ;
23- import static org .junit .Assert .assertNotNull ;
24- import static org .junit .Assert .assertSame ;
25- import static org .junit .Assert .assertThat ;
23+ import static org .junit .jupiter .api .Assertions .assertEquals ;
24+ import static org .junit .jupiter .api .Assertions .assertNotNull ;
25+ import static org .junit .jupiter .api .Assertions .assertSame ;
2626
2727import java .lang .System .Logger ;
2828import java .util .List ;
2929import org .apache .logging .log4j .Level ;
3030import org .apache .logging .log4j .core .LogEvent ;
3131import org .apache .logging .log4j .core .impl .Log4jLogEvent ;
3232import org .apache .logging .log4j .core .test .appender .ListAppender ;
33- import org .junit .After ;
34- import org .junit .Before ;
35- import org .junit .Test ;
33+ import org .junit .jupiter . api . AfterEach ;
34+ import org .junit .jupiter . api . BeforeEach ;
35+ import org .junit .jupiter . api . Test ;
3636
3737public class Log4jSystemLoggerTest {
3838
@@ -41,7 +41,7 @@ public class Log4jSystemLoggerTest {
4141 protected ListAppender eventAppender ;
4242 protected ListAppender stringAppender ;
4343
44- @ Before
44+ @ BeforeEach
4545 public void setUp () throws Exception {
4646 logger = System .getLogger (LOGGER_NAME );
4747 assertThat (logger , instanceOf (Log4jSystemLogger .class ));
@@ -51,7 +51,7 @@ public void setUp() throws Exception {
5151 assertNotNull (stringAppender );
5252 }
5353
54- @ After
54+ @ AfterEach
5555 public void tearDown () throws Exception {
5656 if (eventAppender != null ) {
5757 eventAppender .clear ();
0 commit comments