public class Log4J2Logger extends AnnotatedMethodTemplate<Log4J2Logger.Record>
Usage:
{@code public class MyTest
{| Modifier and Type | Class and Description |
|---|---|
static class |
Log4J2Logger.LogLevel |
static interface |
Log4J2Logger.Record |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.logging.log4j.core.StringLayout |
layout |
annotationClass, testClass| Constructor and Description |
|---|
Log4J2Logger(Class testClass) |
Log4J2Logger(Class testClass,
org.apache.logging.log4j.core.StringLayout layout) |
| Modifier and Type | Method and Description |
|---|---|
protected org.junit.runners.model.Statement |
applyForAnnotation(org.junit.runners.model.Statement statement,
org.junit.runner.Description description,
Log4J2Logger.Record record) |
String |
snapshot() |
applypublic Log4J2Logger(Class testClass)
public Log4J2Logger(Class testClass, org.apache.logging.log4j.core.StringLayout layout)
protected org.junit.runners.model.Statement applyForAnnotation(org.junit.runners.model.Statement statement,
org.junit.runner.Description description,
Log4J2Logger.Record record)
applyForAnnotation in class AnnotatedMethodTemplate<Log4J2Logger.Record>public String snapshot()
Copyright © 2003–2021 Atlassian. All rights reserved.