Package org.apache.pulsar.tests
Class FastThreadLocalCleanupListener
- java.lang.Object
-
- org.apache.pulsar.tests.FastThreadLocalCleanupListener
-
- All Implemented Interfaces:
org.testng.IClassListener,org.testng.ITestListener,org.testng.ITestNGListener
public class FastThreadLocalCleanupListener extends java.lang.ObjectCleanup Thread Local state attach to Netty's FastThreadLocal.
-
-
Constructor Summary
Constructors Constructor Description FastThreadLocalCleanupListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonBeforeClass(org.testng.ITestClass testClass)protected voidonBetweenTestClasses(java.lang.Class<?> endedTestClass, java.lang.Class<?> startedTestClass)Call back hook for adding logic when test execution moves from test class to another.voidonFinish(org.testng.ITestContext context)
-
-
-
Method Detail
-
onBetweenTestClasses
protected void onBetweenTestClasses(java.lang.Class<?> endedTestClass, java.lang.Class<?> startedTestClass)Call back hook for adding logic when test execution moves from test class to another.- Parameters:
endedTestClass- the test class which has finished execution. null if the started test class is the firststartedTestClass- the test class which has started execution. null if the ended test class is the last
-
onBeforeClass
public void onBeforeClass(org.testng.ITestClass testClass)
- Specified by:
onBeforeClassin interfaceorg.testng.IClassListener
-
onFinish
public void onFinish(org.testng.ITestContext context)
- Specified by:
onFinishin interfaceorg.testng.ITestListener
-
-