| Modifier and Type | Field and Description |
|---|---|
| private final IConfigurationListener | |
| private final AutoCloseableLock | |
| private final Map | m_beforegroupsFailures
Group failures must be synced as the Invoker is accessed concurrently |
| private final boolean | |
| private final Set | |
| private boolean | |
| private boolean | |
| private boolean | |
| protected final Map | m_methodInvocationResults
Test methods whose configuration methods have failed. |
| Access | Constructor and Description |
|---|---|
| public | ConfigInvoker(ITestResultNotifier notifier, Collection<IInvokedMethodListener> invokedMethodListeners, ITestContext testContext, SuiteRunState suiteState, IConfiguration configuration, IConfigurationListener internalConfigurationListener, ISuiteRunnerListener suiteRunner)
|
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private boolean | |
| private boolean | Returns: true if this class or a parent class failed to initialize.
|
| private IConfigurable | |
| private static Object | |
| private static void | |
| public IConfiguration | |
| private Set | |
| private void | handleConfigurationFailure(Throwable ite, ITestNGMethod tm, ITestResult testResult, IConfigurationAnnotation annotation, ITestNGMethod currentTestMethod, Object instance, XmlSuite suite)
|
| private void | handleConfigurationSkip(ITestNGMethod tm, ITestResult testResult, IConfigurationAnnotation annotation, ITestNGMethod currentTestMethod, Object instance, XmlSuite suite)
Marks the current |
| private boolean | |
| public boolean | Returns: false if this class has successfully run all its @Configuration method or true if at least one of these methods failed.Implements org. |
| public boolean | hasConfigurationFailureFor(ITestNGMethod configMethod, ITestNGMethod testNGMethod, String[] groups, IClass testClass, Object instance)
Implements org. |
| public void | |
| public void | invokeBeforeGroupsConfigurations(GroupConfigMethodArguments
- A arguments)GroupConfigMethodArguments object.Implements org. |
| private void | invokeConfigurationMethod(Object targetInstance, ITestNGMethod tm, Object[] params, ITestResult testResult)
Effectively invokes a configuration method on all passed in instances. |
| public void | |
| private static boolean | |
| private static boolean | |
| private void | recordConfigurationInvocationFailed(ITestNGMethod tm, IClass testClass, IConfigurationAnnotation annotation, ITestNGMethod currentTestMethod, Object instance, XmlSuite suite)
Record internally the failure of a Configuration, so that we can determine later if @Test should be skipped. |
| private void | |
| private void | |
| private void | |
| private void |
| internalConfigurationListener | back to summary |
|---|---|
| private final IConfigurationListener internalConfigurationListener | |
| internalLock | back to summary |
|---|---|
| private final AutoCloseableLock internalLock | |
| m_beforegroupsFailures | back to summary |
|---|---|
| private final Map<String, Boolean> m_beforegroupsFailures Group failures must be synced as the Invoker is accessed concurrently | |
| m_continueOnFailedConfiguration | back to summary |
|---|---|
| private final boolean m_continueOnFailedConfiguration | |
| m_executedConfigMethods | back to summary |
|---|---|
| private final Set<ITestNGMethod> m_executedConfigMethods | |
| m_hasClassLevelFailures | back to summary |
|---|---|
| private boolean m_hasClassLevelFailures | |
| m_hasTestMethodLevelFailures | back to summary |
|---|---|
| private boolean m_hasTestMethodLevelFailures | |
| m_hasTestTagLevelFailures | back to summary |
|---|---|
| private boolean m_hasTestTagLevelFailures | |
| m_methodInvocationResults | back to summary |
|---|---|
| protected final Map<ITestNGMethod, Set<Object>> m_methodInvocationResults Test methods whose configuration methods have failed. | |
| ConfigInvoker | back to summary |
|---|---|
| public ConfigInvoker(ITestResultNotifier notifier, Collection<IInvokedMethodListener> invokedMethodListeners, ITestContext testContext, SuiteRunState suiteState, IConfiguration configuration, IConfigurationListener internalConfigurationListener, ISuiteRunnerListener suiteRunner) | |
| canIgnoreConfigFailure | back to summary |
|---|---|
| private static boolean canIgnoreConfigFailure(ITestNGMethod method) | |
| canIgnoreConfigFailure | back to summary |
|---|---|
| private boolean canIgnoreConfigFailure(IClass testClass, ITestNGMethod configMethod) | |
| classConfigurationFailed | back to summary |
|---|---|
private boolean classConfigurationFailed(Class<?> cls, Object instance)
| |
| computeConfigurableInstance | back to summary |
|---|---|
| private IConfigurable computeConfigurableInstance(ConstructorOrMethod method, Object targetInstance) | |
| computeInstance | back to summary |
|---|---|
| private static Object computeInstance(Object instance, Object inst, ITestNGMethod tm) | |
| copyAttributesFromNativelyInjectedTestResult | back to summary |
|---|---|
| private static void copyAttributesFromNativelyInjectedTestResult(Object[] source, ITestResult target) | |
| getConfiguration | back to summary |
|---|---|
| public IConfiguration getConfiguration() Implements org.
| |
| getInvocationResults | back to summary |
|---|---|
| private Set | |
| handleConfigurationFailure | back to summary |
|---|---|
| private void handleConfigurationFailure(Throwable ite, ITestNGMethod tm, ITestResult testResult, IConfigurationAnnotation annotation, ITestNGMethod currentTestMethod, Object instance, XmlSuite suite) | |
| handleConfigurationSkip | back to summary |
|---|---|
| private void handleConfigurationSkip(ITestNGMethod tm, ITestResult testResult, IConfigurationAnnotation annotation, ITestNGMethod currentTestMethod, Object instance, XmlSuite suite) Marks the current | |
| hasConfigFailure | back to summary |
|---|---|
| private boolean hasConfigFailure(ITestNGMethod currentTestMethod) | |
| hasConfigurationFailureFor | back to summary |
|---|---|
| public boolean hasConfigurationFailureFor(ITestNGMethod testNGMethod, String[] groups, IClass testClass, Object instance) Implements org.
| |
| hasConfigurationFailureFor | back to summary |
|---|---|
| public boolean hasConfigurationFailureFor(ITestNGMethod configMethod, ITestNGMethod testNGMethod, String[] groups, IClass testClass, Object instance) Implements org.
| |
| invokeAfterGroupsConfigurations | back to summary |
|---|---|
| public void invokeAfterGroupsConfigurations(GroupConfigMethodArguments arguments) Implements org. | |
| invokeBeforeGroupsConfigurations | back to summary |
|---|---|
| public void invokeBeforeGroupsConfigurations(GroupConfigMethodArguments arguments) Implements org. Filter all the beforeGroups methods and invoke only those that apply to the current test method
| |
| invokeConfigurationMethod | back to summary |
|---|---|
| private void invokeConfigurationMethod(Object targetInstance, ITestNGMethod tm, Object[] params, ITestResult testResult) throws InvocationTargetException, IllegalAccessException Effectively invokes a configuration method on all passed in instances. | |
| invokeConfigurations | back to summary |
|---|---|
| public void invokeConfigurations(ConfigMethodArguments arguments) Implements org. | |
| isConfigMethodEligibleForScrutiny | back to summary |
|---|---|
| private static boolean isConfigMethodEligibleForScrutiny(ITestNGMethod tm) | |
| isGroupLevelConfigurationMethod | back to summary |
|---|---|
| private static boolean isGroupLevelConfigurationMethod(ITestNGMethod itm) | |
| recordConfigurationInvocationFailed | back to summary |
|---|---|
| private void recordConfigurationInvocationFailed(ITestNGMethod tm, IClass testClass, IConfigurationAnnotation annotation, ITestNGMethod currentTestMethod, Object instance, XmlSuite suite) Record internally the failure of a Configuration, so that we can determine later if @Test should be skipped. | |
| runConfigurationListeners | back to summary |
|---|---|
| private void runConfigurationListeners(ITestResult tr, ITestNGMethod tm, boolean before) | |
| setClassInvocationFailure | back to summary |
|---|---|
| private void setClassInvocationFailure(Class<?> clazz, Object instance) | |
| setMethodInvocationFailure | back to summary |
|---|---|
| private void setMethodInvocationFailure(ITestNGMethod method, Object instance) | |
| throwConfigurationFailure | back to summary |
|---|---|
| private void throwConfigurationFailure(ITestResult testResult, Throwable ex) | |