You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Ralph Goers <ra...@dslextreme.com> on 2014/01/20 05:05:15 UTC

PatternParserTest failure

-------------------------------------------------------------------------------
Test set: org.apache.logging.log4j.core.pattern.PatternParserTest
-------------------------------------------------------------------------------
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.368 sec <<< FAILURE! - in org.apache.logging.log4j.core.pattern.PatternParserTest
testNestedPatternHighlight(org.apache.logging.log4j.core.pattern.PatternParserTest)  Time elapsed: 0.009 sec  <<< FAILURE!
java.lang.AssertionError: Expected to start with: ^[[30m13 . Actual: ^[[30m20 Jan 2014 03:59:58,145 [Thread1] TRACE: Hello, world
^[[m
        at org.junit.Assert.fail(Assert.java:88)
        at org.junit.Assert.assertTrue(Assert.java:41)
        at org.apache.logging.log4j.core.pattern.PatternParserTest.testNestedPatternHighlight(PatternParserTest.java:135)
        at org.apache.logging.log4j.core.pattern.PatternParserTest.testNestedPatternHighlight(PatternParserTest.java:112)

Re: PatternParserTest failure

Posted by Gary Gregory <ga...@gmail.com>.
On Sun, Jan 19, 2014 at 11:33 PM, Ralph Goers <ra...@dslextreme.com>wrote:

> Fixed in revision 1559625.
>

My bad I think, thank you!

Gary


>
> Ralph
>
> On Jan 19, 2014, at 8:26 PM, Ralph Goers <ra...@dslextreme.com>
> wrote:
>
> OK. The problem with this one seems pretty obvious. The test will only
> pass one day a month as it is including the day of the month in the
> expected pattern.
>
> Ralph
>
> On Jan 19, 2014, at 8:05 PM, Ralph Goers <ra...@dslextreme.com>
> wrote:
>
>
> -------------------------------------------------------------------------------
> Test set: org.apache.logging.log4j.core.pattern.PatternParserTest
>
> -------------------------------------------------------------------------------
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.368 sec
> <<< FAILURE! - in org.apache.logging.log4j.core.pattern.PatternParserTest
> testNestedPatternHighlight(org.apache.logging.log4j.core.pattern.PatternParserTest)
> Time elapsed: 0.009 sec  <<< FAILURE!
> java.lang.AssertionError: Expected to start with: ^[[30m13 . Actual: ^[[30m20
> Jan 2014 03:59:58,145 [Thread1] TRACE: Hello, world
> ^[[m
>         at org.junit.Assert.fail(Assert.java:88)
>         at org.junit.Assert.assertTrue(Assert.java:41)
>         at
> org.apache.logging.log4j.core.pattern.PatternParserTest.testNestedPatternHighlight(PatternParserTest.java:135)
>         at
> org.apache.logging.log4j.core.pattern.PatternParserTest.testNestedPatternHighlight(PatternParserTest.java:112)
>
>
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Re: PatternParserTest failure

Posted by Ralph Goers <ra...@dslextreme.com>.
Fixed in revision 1559625.

Ralph

On Jan 19, 2014, at 8:26 PM, Ralph Goers <ra...@dslextreme.com> wrote:

> OK. The problem with this one seems pretty obvious. The test will only pass one day a month as it is including the day of the month in the expected pattern.
> 
> Ralph
> 
> On Jan 19, 2014, at 8:05 PM, Ralph Goers <ra...@dslextreme.com> wrote:
> 
>> -------------------------------------------------------------------------------
>> Test set: org.apache.logging.log4j.core.pattern.PatternParserTest
>> -------------------------------------------------------------------------------
>> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.368 sec <<< FAILURE! - in org.apache.logging.log4j.core.pattern.PatternParserTest
>> testNestedPatternHighlight(org.apache.logging.log4j.core.pattern.PatternParserTest)  Time elapsed: 0.009 sec  <<< FAILURE!
>> java.lang.AssertionError: Expected to start with: ^[[30m13 . Actual: ^[[30m20 Jan 2014 03:59:58,145 [Thread1] TRACE: Hello, world
>> ^[[m
>>         at org.junit.Assert.fail(Assert.java:88)
>>         at org.junit.Assert.assertTrue(Assert.java:41)
>>         at org.apache.logging.log4j.core.pattern.PatternParserTest.testNestedPatternHighlight(PatternParserTest.java:135)
>>         at org.apache.logging.log4j.core.pattern.PatternParserTest.testNestedPatternHighlight(PatternParserTest.java:112)
> 


Re: PatternParserTest failure

Posted by Ralph Goers <ra...@dslextreme.com>.
OK. The problem with this one seems pretty obvious. The test will only pass one day a month as it is including the day of the month in the expected pattern.

Ralph

On Jan 19, 2014, at 8:05 PM, Ralph Goers <ra...@dslextreme.com> wrote:

> -------------------------------------------------------------------------------
> Test set: org.apache.logging.log4j.core.pattern.PatternParserTest
> -------------------------------------------------------------------------------
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.368 sec <<< FAILURE! - in org.apache.logging.log4j.core.pattern.PatternParserTest
> testNestedPatternHighlight(org.apache.logging.log4j.core.pattern.PatternParserTest)  Time elapsed: 0.009 sec  <<< FAILURE!
> java.lang.AssertionError: Expected to start with: ^[[30m13 . Actual: ^[[30m20 Jan 2014 03:59:58,145 [Thread1] TRACE: Hello, world
> ^[[m
>         at org.junit.Assert.fail(Assert.java:88)
>         at org.junit.Assert.assertTrue(Assert.java:41)
>         at org.apache.logging.log4j.core.pattern.PatternParserTest.testNestedPatternHighlight(PatternParserTest.java:135)
>         at org.apache.logging.log4j.core.pattern.PatternParserTest.testNestedPatternHighlight(PatternParserTest.java:112)