Package org.testng.internal.invokers
Class BaseInvoker
java.lang.Object
org.testng.internal.invokers.BaseInvoker
- Direct Known Subclasses:
ConfigInvoker,TestInvoker
-
Field Summary
FieldsModifier and TypeFieldDescriptionClass failures must be synced as the Invoker is accessed concurrentlyprotected IConfigurationprivate final Collection<IInvokedMethodListener> protected final ITestResultNotifierprotected final SuiteRunStateprotected final ITestContextprotected final Objectprivate final SuiteRunner -
Constructor Summary
ConstructorsConstructorDescriptionBaseInvoker(ITestResultNotifier notifier, Collection<IInvokedMethodListener> invokedMethodListeners, ITestContext testContext, SuiteRunState suiteState, IConfiguration configuration, SuiteRunner suiteRunner) -
Method Summary
Modifier and TypeMethodDescriptionprotected IAnnotationFinderprotected voidhandleException(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 voidprivate booleanprotected voidrunInvokedMethodListeners(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 -
NULL_OBJECT
-
suiteRunner
-
-
Constructor Details
-
BaseInvoker
public BaseInvoker(ITestResultNotifier notifier, Collection<IInvokedMethodListener> invokedMethodListeners, ITestContext testContext, SuiteRunState suiteState, IConfiguration configuration, SuiteRunner suiteRunner)
-
-
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
-