Package org.testng.internal.invokers
Class BaseInvoker
- java.lang.Object
-
- org.testng.internal.invokers.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_classInvocationResults
Class failures must be synced as the Invoker is accessed concurrentlyprotected IConfiguration
m_configuration
private java.util.Collection<IInvokedMethodListener>
m_invokedMethodListeners
protected ITestResultNotifier
m_notifier
protected SuiteRunState
m_suiteState
protected ITestContext
m_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 IAnnotationFinder
annotationFinder()
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_successPercentageprotected boolean
isSkipExceptionAndSkip(java.lang.Throwable ite)
(package private) static void
log(int level, java.lang.String s)
private boolean
noListenersPresent()
protected void
runInvokedMethodListeners(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)
-
-