[test] Supress JavaUtilLoggingRule for now

This commit is contained in:
Andreas Dangel
2022-02-18 16:12:07 +01:00
parent 9ba34fea67
commit d1cc05e4d5

View File

@@ -18,6 +18,7 @@ import java.util.logging.Logger;
import java.util.logging.StreamHandler;
import org.apache.commons.io.output.ByteArrayOutputStream;
import org.junit.contrib.java.lang.system.SystemErrRule;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.MultipleFailureException;
@@ -30,7 +31,11 @@ import org.junit.runners.model.Statement;
* @author Andreas Dangel
* @author Clément Fournier
* @see <a href="http://blog.diabol.se/?p=474">Testing the presence of log messages with java.util.logging</a>
*
* @deprecated Use {@link SystemErrRule} instead. With the switch to slf4j, the log output appears on System.err.
*/
@Deprecated
@SuppressWarnings("PMD.DoNotUseJavaUtilLogging")
public class JavaUtilLoggingRule implements TestRule {
// copied from pmd core test sources