Package mockit.integration.testng
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 mockit.integration.TestRunnerDecorator
shouldPrepareForNextTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterInvocation
(org.testng.IInvokedMethod invokedMethod, org.testng.ITestResult testResult) void
beforeInvocation
(org.testng.IInvokedMethod invokedMethod, org.testng.ITestResult testResult) void
void
Methods inherited from class mockit.integration.TestRunnerDecorator
cleanUpAllMocks, cleanUpMocksFromPreviousTest, cleanUpMocksFromPreviousTestClass, clearFieldTypeRedefinitions, clearTestedObjectsCreatedDuringSetup, clearTestedObjectsIfAny, concludeTestMethodExecution, createInstancesForAnnotatedParameters, createInstancesForTestedFields, createInstancesForTestedFieldsBeforeSetup, createInstancesForTestedFieldsFromBaseClasses, discardTestLevelMockedTypes, handleMockFieldsForWholeTestClass, prepareForNextTest, updateTestClassState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.testng.IInvokedMethodListener
afterInvocation, beforeInvocation
Methods 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:
beforeInvocation
in interfaceorg.testng.IInvokedMethodListener
-
afterInvocation
public void afterInvocation(@NonNull org.testng.IInvokedMethod invokedMethod, @NonNull org.testng.ITestResult testResult) - Specified by:
afterInvocation
in interfaceorg.testng.IInvokedMethodListener
-
onExecutionStart
public void onExecutionStart()- Specified by:
onExecutionStart
in interfaceorg.testng.IExecutionListener
-
onExecutionFinish
public void onExecutionFinish()- Specified by:
onExecutionFinish
in interfaceorg.testng.IExecutionListener
-