16
16
*/
17
17
package org .apache .logging .log4j .jpl ;
18
18
19
+ import static org .hamcrest .MatcherAssert .assertThat ;
19
20
import static org .hamcrest .Matchers .equalTo ;
20
21
import static org .hamcrest .Matchers .hasSize ;
21
22
import 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 ;
26
26
27
27
import java .lang .System .Logger ;
28
28
import java .util .List ;
29
29
import org .apache .logging .log4j .Level ;
30
30
import org .apache .logging .log4j .core .LogEvent ;
31
31
import org .apache .logging .log4j .core .impl .MementoLogEvent ;
32
32
import 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 ;
36
36
37
37
public class Log4jSystemLoggerTest {
38
38
@@ -41,7 +41,7 @@ public class Log4jSystemLoggerTest {
41
41
protected ListAppender eventAppender ;
42
42
protected ListAppender stringAppender ;
43
43
44
- @ Before
44
+ @ BeforeEach
45
45
public void setUp () throws Exception {
46
46
logger = System .getLogger (LOGGER_NAME );
47
47
assertThat (logger , instanceOf (Log4jSystemLogger .class ));
@@ -51,7 +51,7 @@ public void setUp() throws Exception {
51
51
assertNotNull (stringAppender );
52
52
}
53
53
54
- @ After
54
+ @ AfterEach
55
55
public void tearDown () throws Exception {
56
56
if (eventAppender != null ) {
57
57
eventAppender .clear ();
0 commit comments