Package org.testng.internal
Class BaseInvoker
java.lang.Object
org.testng.internal.BaseInvoker
- Direct Known Subclasses:
ConfigInvoker
,TestInvoker
-
Field Summary
FieldsModifier and TypeFieldDescriptionClass failures must be synced as the Invoker is accessed concurrentlyprotected IConfiguration
private final Collection<IInvokedMethodListener>
protected final ITestResultNotifier
protected final SuiteRunState
protected final ITestContext
-
Constructor Summary
ConstructorsConstructorDescriptionBaseInvoker
(ITestResultNotifier notifier, Collection<IInvokedMethodListener> invokedMethodListeners, ITestContext testContext, SuiteRunState suiteState, IConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionprotected IAnnotationFinder
protected void
handleException
(Throwable throwable, ITestNGMethod testMethod, ITestResult testResult, int failureCount) An exception was thrown by the test, determine if this method should be marked as a failure or as failure_but_within_successPercentageprotected boolean
(package private) static void
private boolean
protected void
runInvokedMethodListeners
(InvokedMethodListenerMethod listenerMethod, IInvokedMethod invokedMethod, ITestResult testResult)
-
Field Details
-
m_invokedMethodListeners
-
m_notifier
-
m_testContext
-
m_suiteState
-
m_configuration
-
m_classInvocationResults
Class failures must be synced as the Invoker is accessed concurrently
-
-
Constructor Details
-
BaseInvoker
public BaseInvoker(ITestResultNotifier notifier, Collection<IInvokedMethodListener> invokedMethodListeners, ITestContext testContext, SuiteRunState suiteState, IConfiguration configuration)
-
-
Method Details
-
annotationFinder
-
runInvokedMethodListeners
protected void runInvokedMethodListeners(InvokedMethodListenerMethod listenerMethod, IInvokedMethod invokedMethod, ITestResult testResult) -
noListenersPresent
private boolean noListenersPresent() -
handleException
protected void handleException(Throwable throwable, ITestNGMethod testMethod, ITestResult testResult, int failureCount) An exception was thrown by the test, determine if this method should be marked as a failure or as failure_but_within_successPercentage -
isSkipExceptionAndSkip
-
log
-