Additional top-level class in compilation unit: SingleTestMethodWorker.
This class implements Runnable and will invoke the ITestMethod passed in its constructor on its run() method.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private long | |
| private static final KeyAwareAutoCloseableLock | |
| private final ClassMethodMap | |
| private final IConfigInvoker | |
| private final ConfigurationGroupMethods | |
| private final List | |
| private final List | |
| private final Map | |
| private final ITestContext | |
| private final ITestInvoker | |
| private final List | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | TestMethodWorker(ITestInvoker testInvoker, IConfigInvoker configInvoker, List<IMethodInstance> testMethods, Map<String, String> parameters, ConfigurationGroupMethods groupMethods, ClassMethodMap classMethodMap, ITestContext testContext, List<IClassListener> listeners)
|
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public int | compareTo(IWorker<ITestNGMethod>
the object to be compared. other)Implements java. |
| public boolean | |
| private boolean | |
| public long | |
| public int | getPriority()
Implements org. |
| public List | |
| public List | |
| public long | Returns: the max timeout or 0 if no timeout was specifiedImplements org. |
| protected int | |
| private void | |
| protected void | invokeAfterClassMethods(ITestClass testClass, IMethodInstance mi)
Invoke the @AfterClass methods if not done already |
| protected void | invokeBeforeClassMethods(ITestClass testClass, IMethodInstance mi)
Invoke the @BeforeClass methods if not done already |
| private void | |
| protected void | |
| public void | run()
Implements java. |
| public void | setThreadIdToRunOn(long threadIdToRunOn)
Overrides default org. |
| public String |
| completed | back to summary |
|---|---|
| private boolean completed | |
| currentThreadId | back to summary |
|---|---|
| private long currentThreadId | |
| lock | back to summary |
|---|---|
| private static final KeyAwareAutoCloseableLock lock | |
| m_classMethodMap | back to summary |
|---|---|
| private final ClassMethodMap m_classMethodMap | |
| m_configInvoker | back to summary |
|---|---|
| private final IConfigInvoker m_configInvoker | |
| m_groupMethods | back to summary |
|---|---|
| private final ConfigurationGroupMethods m_groupMethods | |
| m_listeners | back to summary |
|---|---|
| private final List<IClassListener> m_listeners | |
| m_methodInstances | back to summary |
|---|---|
| private final List<IMethodInstance> m_methodInstances | |
| m_parameters | back to summary |
|---|---|
| private final Map<String, String> m_parameters | |
| m_testContext | back to summary |
|---|---|
| private final ITestContext m_testContext | |
| m_testInvoker | back to summary |
|---|---|
| private final ITestInvoker m_testInvoker | |
| m_testResults | back to summary |
|---|---|
| private final List<ITestResult> m_testResults | |
| threadIdToRunOn | back to summary |
|---|---|
| private long threadIdToRunOn | |
| TestMethodWorker | back to summary |
|---|---|
| public TestMethodWorker(ITestInvoker testInvoker, IConfigInvoker configInvoker, List<IMethodInstance> testMethods, Map<String, String> parameters, ConfigurationGroupMethods groupMethods, ClassMethodMap classMethodMap, ITestContext testContext, List<IClassListener> listeners) | |
| canInvokeBeforeClassMethods | back to summary |
|---|---|
| private boolean canInvokeBeforeClassMethods() | |
| compareTo | back to summary |
|---|---|
| public int compareTo(IWorker<ITestNGMethod> other) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| completed | back to summary |
|---|---|
| public boolean completed() Overrides default org.
| |
| doesTaskHavePreRequisites | back to summary |
|---|---|
| private boolean doesTaskHavePreRequisites() | |
| getCurrentThreadId | back to summary |
|---|---|
| public long getCurrentThreadId() Overrides default org.
| |
| getPriority | back to summary |
|---|---|
| public int getPriority() Implements org. The priority of a worker is the priority of the first method it's going to run.
| |
| getTasks | back to summary |
|---|---|
| public List Implements org.
| |
| getTestResults | back to summary |
|---|---|
| public List | |
| getTimeOut | back to summary |
|---|---|
| public long getTimeOut() Implements org. Retrieves the maximum specified timeout of all ITestNGMethods to be run.
| |
| indexOf | back to summary |
|---|---|
| protected int indexOf(ITestNGMethod tm, ITestNGMethod[] allTestMethods) | |
| invokeAfterClassConfigurations | back to summary |
|---|---|
| private void invokeAfterClassConfigurations(ITestClass testClass, List<Object> invokeInstances) | |
| invokeAfterClassMethods | back to summary |
|---|---|
| protected void invokeAfterClassMethods(ITestClass testClass, IMethodInstance mi) Invoke the @AfterClass methods if not done already | |
| invokeBeforeClassMethods | back to summary |
|---|---|
| protected void invokeBeforeClassMethods(ITestClass testClass, IMethodInstance mi) Invoke the @BeforeClass methods if not done already | |
| invokeListenersOnAfterClass | back to summary |
|---|---|
| private void invokeListenersOnAfterClass(ITestClass testClass, List<IClassListener> listeners) | |
| invokeTestMethods | back to summary |
|---|---|
| protected void invokeTestMethods(ITestNGMethod tm, Object instance) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Run all the ITestNGMethods passed in through the constructor.
| |
| setThreadIdToRunOn | back to summary |
|---|---|
| public void setThreadIdToRunOn(long threadIdToRunOn) Overrides default org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |