In branch LOG4J2-1442 (HttpAppender), some unit tests in log4j-core fail. I
guess that's because I have added this test dependency (which has a lot of
transitive dependencies):
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock</artifactId>
<scope>test</scope>
<version>2.6.0</version>
</dependency>
Any ideas what may cause these failures?
[ERROR]
AsyncLoggerConfigThreadContextDefaultTest>AbstractAsyncThreadContextTestBase.testAsyncLogWritesToLog:158->AbstractAsyncThreadContextTestBase.checkResult:184
AsyncLoggerTest.log: line 1 expected:<...value [stackvalue] {[KEY=mapvalue,
configProp=configValue, configProp2=configValue2, count=1]} WEBAPP
DefaultThre...> but was:<...value [stackvalue] {[count=1,
configProp2=configValue2, configProp=configValue, KEY=mapvalue]} WEBAPP
DefaultThre...>
[ERROR]
AsyncLoggerThreadContextCopyOnWriteTest>AbstractAsyncThreadContextTestBase.testAsyncLogWritesToLog:158->AbstractAsyncThreadContextTestBase.checkResult:184
AsyncLoggerTest.log: line 1 expected:<INFO c.f.Bar [mapvalue [stackvalue]
{KEY=mapvalue, configProp=configValue, configProp2=configValue2, count=1]}
COPY_ON_WRITE Copy...> but was:<INFO c.f.Bar [ [stackvalue] {]}
COPY_ON_WRITE Copy...>
[ERROR]
AsyncLoggerThreadContextDefaultTest>AbstractAsyncThreadContextTestBase.testAsyncLogWritesToLog:158->AbstractAsyncThreadContextTestBase.checkResult:184
AsyncLoggerTest.log: line 1 expected:<INFO c.f.Bar [mapvalue [stackvalue]
{KEY=mapvalue, configProp=configValue, configProp2=configValue2, count=1]}
WEBAPP DefaultThre...> but was:<INFO c.f.Bar [ [stackvalue] {]} WEBAPP
DefaultThre...>
[ERROR]
AsyncLoggerThreadContextGarbageFreeTest>AbstractAsyncThreadContextTestBase.testAsyncLogWritesToLog:158->AbstractAsyncThreadContextTestBase.checkResult:184
AsyncLoggerTest.log: line 38 expected:<INFO c.f.Bar [mapvalue [stackvalue]
{KEY=mapvalue, configProp=configValue, configProp2=configValue2]}
GARBAGE_FREE Garba...> but was:<INFO c.f.Bar [ [stackvalue] {]}
GARBAGE_FREE Garba...>
[ERROR] NestedLoggingFromToStringTest.testDoublyNestedLogging:126
expected:<[DEBUG
org.apache.logging.log4j.core.impl.NestedLoggingFromToStringTest$ParameterizedLoggingThing
getX: values x=3 y=4 z=5]> but was:<[INFO
org.apache.logging.log4j.core.impl.NestedLoggingFromToStringTest
[ObjectLoggingThing1 y=999]]>
[ERROR]
NestedLoggingFromToStringTest.testNestedLoggingInFirstArgument:113
expected:<[DEBUG
org.apache.logging.log4j.core.impl.NestedLoggingFromToStringTest$ParameterizedLoggingThing
getX: values x=3 y=4 z=5]> but was:<[INFO
org.apache.logging.log4j.core.impl.NestedLoggingFromToStringTest next:
it=[ParameterizedLoggingThing x=3 y=4 z=5] someAA otherBB]>
[ERROR] NestedLoggingFromToStringTest.testNestedLoggingInLastArgument:101
expected:<[DEBUG
org.apache.logging.log4j.core.impl.NestedLoggingFromToStringTest$ParameterizedLoggingThing
getX: values x=3 y=4 z=5]> but was:<[INFO
org.apache.logging.log4j.core.impl.NestedLoggingFromToStringTest main:
argCount=2 it=[ParameterizedLoggingThing x=3 y=4 z=5]]>
--
[image: MagineTV]
*Mikael Ståldal*
Senior software developer
*Magine TV*
[email protected]
Grev Turegatan 3 | 114 46 Stockholm, Sweden | www.magine.com
Privileged and/or Confidential Information may be contained in this
message. If you are not the addressee indicated in this message
(or responsible for delivery of the message to such a person), you may not
copy or deliver this message to anyone. In such case,
you should destroy this message and kindly notify the sender by reply
email.