Class TestNGRunnerDecorator
java.lang.Object
mockit.integration.TestRunnerDecorator
mockit.integration.testng.TestNGRunnerDecorator
- All Implemented Interfaces:
org.testng.IExecutionListener, org.testng.IInvokedMethodListener, org.testng.ITestNGListener
public final class TestNGRunnerDecorator
extends TestRunnerDecorator
implements org.testng.IInvokedMethodListener, org.testng.IExecutionListener
Provides callbacks to be called by the TestNG 6.2+ test runner for each test execution. JMockit will then assert any
expectations recorded in
Expectations subclasses during the test.
This class is not supposed to be accessed from user code; it will be automatically loaded at startup.
-
Field Summary
Fields inherited from class TestRunnerDecorator
shouldPrepareForNextTest -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterInvocation(org.testng.IInvokedMethod invokedMethod, org.testng.ITestResult testResult) voidbeforeInvocation(org.testng.IInvokedMethod invokedMethod, org.testng.ITestResult testResult) voidvoidMethods inherited from class TestRunnerDecorator
cleanUpAllMocks, cleanUpMocksFromPreviousTest, cleanUpMocksFromPreviousTestClass, clearFieldTypeRedefinitions, clearTestedObjectsCreatedDuringSetup, clearTestedObjectsIfAny, concludeTestMethodExecution, createInstancesForAnnotatedParameters, createInstancesForTestedFields, createInstancesForTestedFieldsBeforeSetup, createInstancesForTestedFieldsFromBaseClasses, discardTestLevelMockedTypes, handleMockFieldsForWholeTestClass, prepareForNextTest, updateTestClassStateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.testng.IInvokedMethodListener
afterInvocation, beforeInvocationMethods inherited from interface org.testng.ITestNGListener
isEnabled
-
Constructor Details
-
TestNGRunnerDecorator
public TestNGRunnerDecorator()
-
-
Method Details
-
beforeInvocation
public void beforeInvocation(@NonNull org.testng.IInvokedMethod invokedMethod, @NonNull org.testng.ITestResult testResult) - Specified by:
beforeInvocationin interfaceorg.testng.IInvokedMethodListener
-
afterInvocation
public void afterInvocation(@NonNull org.testng.IInvokedMethod invokedMethod, @NonNull org.testng.ITestResult testResult) - Specified by:
afterInvocationin interfaceorg.testng.IInvokedMethodListener
-
onExecutionStart
public void onExecutionStart()- Specified by:
onExecutionStartin interfaceorg.testng.IExecutionListener
-
onExecutionFinish
public void onExecutionFinish()- Specified by:
onExecutionFinishin interfaceorg.testng.IExecutionListener
-