Package org.testng.internal
Class BaseInvoker
- java.lang.Object
-
- org.testng.internal.BaseInvoker
-
- Direct Known Subclasses:
ConfigInvoker,TestInvoker
class BaseInvoker extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.Class<?>,java.util.Set<java.lang.Object>>m_classInvocationResultsClass failures must be synced as the Invoker is accessed concurrentlyprotected IConfigurationm_configurationprivate java.util.Collection<IInvokedMethodListener>m_invokedMethodListenersprotected ITestResultNotifierm_notifierprotected SuiteRunStatem_suiteStateprotected ITestContextm_testContext
-
Constructor Summary
Constructors Constructor Description BaseInvoker(ITestResultNotifier notifier, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, ITestContext testContext, SuiteRunState suiteState, IConfiguration configuration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IAnnotationFinderannotationFinder()protected voidhandleException(java.lang.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 booleanisSkipExceptionAndSkip(java.lang.Throwable ite)(package private) static voidlog(int level, java.lang.String s)private booleannoListenersPresent()protected voidrunInvokedMethodListeners(InvokedMethodListenerMethod listenerMethod, IInvokedMethod invokedMethod, ITestResult testResult)
-
-
-
Field Detail
-
m_invokedMethodListeners
private final java.util.Collection<IInvokedMethodListener> m_invokedMethodListeners
-
m_notifier
protected final ITestResultNotifier m_notifier
-
m_testContext
protected final ITestContext m_testContext
-
m_suiteState
protected final SuiteRunState m_suiteState
-
m_configuration
protected IConfiguration m_configuration
-
m_classInvocationResults
protected final java.util.Map<java.lang.Class<?>,java.util.Set<java.lang.Object>> m_classInvocationResults
Class failures must be synced as the Invoker is accessed concurrently
-
-
Constructor Detail
-
BaseInvoker
public BaseInvoker(ITestResultNotifier notifier, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, ITestContext testContext, SuiteRunState suiteState, IConfiguration configuration)
-
-
Method Detail
-
annotationFinder
protected IAnnotationFinder annotationFinder()
-
runInvokedMethodListeners
protected void runInvokedMethodListeners(InvokedMethodListenerMethod listenerMethod, IInvokedMethod invokedMethod, ITestResult testResult)
-
noListenersPresent
private boolean noListenersPresent()
-
handleException
protected void handleException(java.lang.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
protected boolean isSkipExceptionAndSkip(java.lang.Throwable ite)
-
log
static void log(int level, java.lang.String s)
-
-