-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor log4j-core-test to junit 5 #1
Conversation
6422755
to
12a1600
Compare
f2ff08f
to
d18b772
Compare
log4j-core-test/src/test/java/org/apache/logging/log4j/MarkerMixInTest.java
Show resolved
Hide resolved
log4j-core-test/src/test/java/org/apache/logging/log4j/core/Log4j1222Test.java
Show resolved
Hide resolved
@@ -53,6 +52,6 @@ public void testFlushAtEndOfBatch() throws Exception { | |||
reader.close(); | |||
file.delete(); | |||
assertNotNull("line1", line1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to change the order? Not sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops you are right! i wonder how it passed the tests.. 🤔
@@ -65,9 +64,9 @@ public void testAsyncLogWritesToLog() throws Exception { | |||
reader.close(); | |||
file.delete(); | |||
assertNotNull("line1", line1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to change the order?
39f6585
to
feafaee
Compare
Signed-off-by: Ninette Adhikari <[email protected]>
Signed-off-by: Ninette Adhikari <[email protected]>
Signed-off-by: Ninette Adhikari <[email protected]>
9412b17
to
4b3bfd5
Compare
Introduction
We are from Neighbourhoodie, the implementation partner of the STF Bug Resilience Program. This work is part of our agreed
Milestone 1. Upgrade from JUnit 4 to JUnit 5
. This PR migrates the tests located inx
to JUnit5.cPlease note the
log4j-core-test
module contains over 150 files and this PR updates the tests for 40 of them. Further PRs will be made to update the rest of the tests.Checklist
2.x
branch if you are targeting Log4j 2; usemain
otherwise./mvnw verify
succeeds (if it fails due to code formatting issues reported by Spotless, simply run./mvnw spotless:apply
and retry)src/changelog/.2.x.x
directory