Class MdcTestListener
- java.lang.Object
-
- com.xebialabs.platform.test.testng.MdcTestListener
-
- All Implemented Interfaces:
org.testng.IInvokedMethodListener,org.testng.ITestNGListener
public class MdcTestListener extends java.lang.Object implements org.testng.IInvokedMethodListener
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMDC_KEY_LOGstatic java.lang.StringMDC_KEY_TESTstatic java.lang.String[]MDC_KEYS
-
Constructor Summary
Constructors Constructor Description MdcTestListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult testResult)voidbeforeInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult testResult)protected java.lang.StringgetName(org.testng.ITestNGMethod m_method, java.lang.Object[] params)
-
-
-
Field Detail
-
MDC_KEY_TEST
public static final java.lang.String MDC_KEY_TEST
- See Also:
- Constant Field Values
-
MDC_KEY_LOG
public static final java.lang.String MDC_KEY_LOG
- See Also:
- Constant Field Values
-
MDC_KEYS
public static final java.lang.String[] MDC_KEYS
-
-
Method Detail
-
getName
protected java.lang.String getName(org.testng.ITestNGMethod m_method, java.lang.Object[] params)
-
beforeInvocation
public void beforeInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult testResult)- Specified by:
beforeInvocationin interfaceorg.testng.IInvokedMethodListener
-
afterInvocation
public void afterInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult testResult)- Specified by:
afterInvocationin interfaceorg.testng.IInvokedMethodListener
-
-