com.atlassian.confluence.util.test.rules
Class Log4JLogger
java.lang.Object
com.atlassian.confluence.util.test.rules.AnnotatedMethodTemplate<Log4JLogger.Record>
com.atlassian.confluence.util.test.rules.Log4JLogger
- All Implemented Interfaces:
- org.junit.rules.TestRule
public class Log4JLogger
- extends AnnotatedMethodTemplate<Log4JLogger.Record>
Record the logging output for a given (class) logger.
Usage:
{@code public class MyTest
{
- Since:
- 5.4
Field Summary |
protected org.apache.log4j.Layout |
layout
|
Constructor Summary |
Log4JLogger(java.lang.Class testClass)
|
Log4JLogger(java.lang.Class testClass,
org.apache.log4j.Layout layout)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
layout
protected final org.apache.log4j.Layout layout
Log4JLogger
public Log4JLogger(java.lang.Class testClass)
Log4JLogger
public Log4JLogger(java.lang.Class testClass,
org.apache.log4j.Layout layout)
applyForAnnotation
protected org.junit.runners.model.Statement applyForAnnotation(org.junit.runners.model.Statement statement,
org.junit.runner.Description description,
Log4JLogger.Record record)
- Specified by:
applyForAnnotation
in class AnnotatedMethodTemplate<Log4JLogger.Record>
snapshot
public java.lang.String snapshot()
Copyright © 2003-2013 Atlassian. All Rights Reserved.