JSF & Java Blog

Discussion on Java and JSF, including Spring, Maven, Eclipse and Jenkins

Posts Tagged / surefire

Suppress logging in java unit tests

Here are a couple of different ways of suppressing logging when running unit tests. If you are using apache commons logging then you can suppress logging with the following code: If running your unit tests with JUnit, it is probably best to put this code in the setUp() method. However, if you only wanted it […]

0