-
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-api-test to junit 5 #9
base: 2.x
Are you sure you want to change the base?
Conversation
9d64a78
to
4d0c11a
Compare
@@ -123,6 +123,7 @@ public void testSerializationOfNonSerializableValue() throws Exception { | |||
public void testDeserializationOfUnknownClass() throws Exception { | |||
final SortedArrayStringMap original = new SortedArrayStringMap(); | |||
original.putValue("a", "avalue"); | |||
// org.junit.runner does not have an equivalent in junit 5 | |||
original.putValue("serializableButNotInClasspathOfDeserializer", new org.junit.runner.Result()); |
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.
This is a part I just don't know how to fix. It seems to me as if they are just using the Result() function to generate a Serializable output. Maybe they need to rewrite this test.
All of a sudden I am now getting the
Error locally when running the tests. Which seems to be cause by a loop maybe here:
this used to only happen when I removed the junit dependency from the pom.xml file and replaced it with org.junit.vinatge. I talked to james about this error the other day and we did not have an idea how to figure out what is causing this. so we left it (since at the time I thought it only occurs with the junit.vinatge dependency which I could just not use) The other Build Actions will also fail (probably due to some timeout or Stackoverflow somewhere) :((( |
0760ff0
to
2b9940a
Compare
|
||
@ParameterizedTest | ||
@MethodSource("data") | ||
public void testSerializationRoundtripEquals(Serializable serializable) { |
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.
oopsie, this should be final MessageFormatMessage message
2b9940a
to
4ca67e8
Compare
4ca67e8
to
b15b1e9
Compare
[A clear and concise description of what the pull request is for along with a reference to the associated issue IDs, if they exist.]
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