public class MdcTestListener
extends java.lang.Object
implements org.testng.IInvokedMethodListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MDC_KEY_LOG |
static java.lang.String |
MDC_KEY_TEST |
static java.lang.String[] |
MDC_KEYS |
| Constructor and Description |
|---|
MdcTestListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterInvocation(org.testng.IInvokedMethod method,
org.testng.ITestResult testResult) |
void |
beforeInvocation(org.testng.IInvokedMethod method,
org.testng.ITestResult testResult) |
protected java.lang.String |
getName(org.testng.ITestNGMethod m_method,
java.lang.Object[] params) |
public static final java.lang.String MDC_KEY_TEST
public static final java.lang.String MDC_KEY_LOG
public static final java.lang.String[] MDC_KEYS
protected java.lang.String getName(org.testng.ITestNGMethod m_method,
java.lang.Object[] params)
public void beforeInvocation(org.testng.IInvokedMethod method,
org.testng.ITestResult testResult)
beforeInvocation in interface org.testng.IInvokedMethodListenerpublic void afterInvocation(org.testng.IInvokedMethod method,
org.testng.ITestResult testResult)
afterInvocation in interface org.testng.IInvokedMethodListener