public class InvokedMethodListenerInvoker extends Object
IInvokedMethodListener.| Constructor and Description |
|---|
InvokedMethodListenerInvoker(InvokedMethodListenerMethod listenerMethod,
ITestResult testResult,
ITestContext testContext)
Creates a new invoker instance which can be used to call the specified
listenerMethod
on any number of IInvokedMethodListeners. |
| Modifier and Type | Method and Description |
|---|---|
void |
invokeListener(IInvokedMethodListener listenerInstance,
IInvokedMethod invokedMethod)
Invokes the given
listenerInstance, calling the method specified in the constructor of
this InvokedMethodListenerInvoker. |
public InvokedMethodListenerInvoker(InvokedMethodListenerMethod listenerMethod, ITestResult testResult, ITestContext testContext)
listenerMethod
on any number of IInvokedMethodListeners.listenerMethod - method which should be called.testResult - test result which should be passed to the listener method upon invocation.testContext - test context which should be passed to the listener method upon invocation.
This parameter is only used when calling methods on an IInvokedMethodListener.public void invokeListener(IInvokedMethodListener listenerInstance, IInvokedMethod invokedMethod)
listenerInstance, calling the method specified in the constructor of
this InvokedMethodListenerInvoker.listenerInstance - the listener instance which should be invoked.invokedMethod - the IInvokedMethod instance which should be passed to the IInvokedMethodListener.beforeInvocation(IInvokedMethod, ITestResult), IInvokedMethodListener.afterInvocation(IInvokedMethod, ITestResult), IInvokedMethodListener.beforeInvocation(IInvokedMethod, ITestResult, ITestContext) or
IInvokedMethodListener.afterInvocation(IInvokedMethod, ITestResult, ITestContext)
method.Copyright © 2025. All rights reserved.