Class Log4J2Logger
- java.lang.Object
-
- com.atlassian.confluence.util.test.rules.AnnotatedMethodTemplate<Log4J2Logger.Record>
-
- com.atlassian.confluence.util.test.rules.Log4J2Logger
-
- All Implemented Interfaces:
org.junit.rules.TestRule
@Deprecated public class Log4J2Logger extends AnnotatedMethodTemplate<Log4J2Logger.Record>
Deprecated.Record the logging output for a given log4j2 logger.Usage:
{@code public class MyTest {
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Log4J2Logger.LogLevel
Deprecated.static interface
Log4J2Logger.Record
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.logging.log4j.core.StringLayout
layout
Deprecated.-
Fields inherited from class com.atlassian.confluence.util.test.rules.AnnotatedMethodTemplate
annotationClass, testClass
-
-
Constructor Summary
Constructors Constructor Description Log4J2Logger(Class testClass)
Deprecated.Log4J2Logger(Class testClass, org.apache.logging.log4j.core.StringLayout layout)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.junit.runners.model.Statement
applyForAnnotation(org.junit.runners.model.Statement statement, org.junit.runner.Description description, Log4J2Logger.Record record)
Deprecated.String
snapshot()
Deprecated.-
Methods inherited from class com.atlassian.confluence.util.test.rules.AnnotatedMethodTemplate
apply
-
-
-
-
Method Detail
-
applyForAnnotation
protected org.junit.runners.model.Statement applyForAnnotation(org.junit.runners.model.Statement statement, org.junit.runner.Description description, Log4J2Logger.Record record)
Deprecated.- Specified by:
applyForAnnotation
in classAnnotatedMethodTemplate<Log4J2Logger.Record>
-
snapshot
public String snapshot()
Deprecated.
-
-