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.

  • 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 interface org.testng.IInvokedMethodListener
    • afterInvocation

      public void afterInvocation(@NonNull org.testng.IInvokedMethod invokedMethod, @NonNull org.testng.ITestResult testResult)
      Specified by:
      afterInvocation in interface org.testng.IInvokedMethodListener
    • onExecutionStart

      public void onExecutionStart()
      Specified by:
      onExecutionStart in interface org.testng.IExecutionListener
    • onExecutionFinish

      public void onExecutionFinish()
      Specified by:
      onExecutionFinish in interface org.testng.IExecutionListener