Top Fields Constructors Methods
org.testng.internal.invokers

pack-priv Class BaseInvoker

extends Object
Class Inheritance
Known Direct Subclasses
org.testng.internal.invokers.ConfigInvoker, org.testng.internal.invokers.TestInvoker
Imports
java.util.Collection, .Map, .Set, org.testng.IInvokedMethod, .IInvokedMethodListener, .ISuiteRunnerListener, .ITestContext, .ITestNGMethod, .ITestResult, .SkipException, .SuiteRunState, org.testng.collections.Maps, org.testng.internal.IConfiguration, .ITestResultNotifier, .ListenerOrderDeterminer, .Utils, org.testng.internal.annotations.IAnnotationFinder

Field Summary

Modifier and TypeField and Description
protected final Map<Class<?>, Set<Object>>
m_classInvocationResults

Class failures must be synced as the Invoker is accessed concurrently

protected IConfiguration
private final Collection<IInvokedMethodListener>
protected final ITestResultNotifier
protected final SuiteRunState
protected final ITestContext
protected final Object
private final ISuiteRunnerListener

Constructor Summary

AccessConstructor and Description
public
BaseInvoker(ITestResultNotifier notifier, Collection<IInvokedMethodListener> invokedMethodListeners, ITestContext testContext, SuiteRunState suiteState, IConfiguration configuration, ISuiteRunnerListener suiteRunner)

Method Summary

Modifier and TypeMethod and Description
protected 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_successPercentage

protected boolean
pack-priv static void
log(int level, String s)

private boolean
protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_classInvocationResultsback to summary
protected final Map<Class<?>, Set<Object>> m_classInvocationResults

Class failures must be synced as the Invoker is accessed concurrently

m_configurationback to summary
protected IConfiguration m_configuration
m_invokedMethodListenersback to summary
private final Collection<IInvokedMethodListener> m_invokedMethodListeners
m_notifierback to summary
protected final ITestResultNotifier m_notifier
m_suiteStateback to summary
protected final SuiteRunState m_suiteState
m_testContextback to summary
protected final ITestContext m_testContext
NULL_OBJECTback to summary
protected final Object NULL_OBJECT
suiteRunnerback to summary
private final ISuiteRunnerListener suiteRunner

Constructor Detail

BaseInvokerback to summary
public BaseInvoker(ITestResultNotifier notifier, Collection<IInvokedMethodListener> invokedMethodListeners, ITestContext testContext, SuiteRunState suiteState, IConfiguration configuration, ISuiteRunnerListener suiteRunner)

Method Detail

annotationFinderback to summary
protected IAnnotationFinder annotationFinder()
handleExceptionback to summary
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

isSkipExceptionAndSkipback to summary
protected boolean isSkipExceptionAndSkip(Throwable ite)
logback to summary
pack-priv static void log(int level, String s)
noListenersPresentback to summary
private boolean noListenersPresent()
runInvokedMethodListenersback to summary
protected void runInvokedMethodListeners(InvokedMethodListenerMethod listenerMethod, IInvokedMethod invokedMethod, ITestResult testResult)