public class Log4jLoggerExtension extends Object implements org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeEachCallback
Constructor and Description |
---|
Log4jLoggerExtension()
Creates a watcher of the root category
|
Log4jLoggerExtension(Class<?> clazz)
Creates a watcher of the given class category
|
Log4jLoggerExtension(String category)
Creates a watcher of the given category
|
Modifier and Type | Method and Description |
---|---|
void |
afterEach(org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
void |
beforeEach(org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
String |
getMessage() |
void |
reset() |
void |
setLevel(org.apache.log4j.Level level) |
public Log4jLoggerExtension(String category)
category
- the category to watchpublic Log4jLoggerExtension()
public Log4jLoggerExtension(Class<?> clazz)
clazz
- the class category to watchpublic String getMessage()
public void reset()
public void setLevel(org.apache.log4j.Level level)
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws Exception
beforeEach
in interface org.junit.jupiter.api.extension.BeforeEachCallback
Exception
Copyright © 2002-2020 Atlassian. All Rights Reserved.