Re: Best practices for unit testing that logging is correct done

2018-02-22 Thread Atle Tokle
Thank you. This is exactly what I'm looking for. I have tried to use it, but don't see any way I can include it into my maven test dependency. Do I have to copy all the stuff I need and make a local test-library, or is it a maven GAV reference that I can include in my test-scope to get it. Atle

Re: Best practices for unit testing that logging is correct done

2018-02-22 Thread Matt Sicker
Here's an example of pulling in a test jar dependency: < https://github.com/apache/logging-log4j2/blob/master/log4j-core-its/pom.xml#L64-L69>. Just add the tag as well. https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.apache.logging.log4j%22%20AND%20a%3A%22log4j-core%22 Note the tests.jar