HierarchicalTestEngine#createExecutorService(ExecutionRequest), SameThreadHierarchicalTestExecutorService, ForkJoinPoolHierarchicalTestExecutorService
| Modifier and Type | Class and Description |
|---|---|
| public static interface | HierarchicalTestExecutorService.
An executable task that represents a single test or container. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Redeclares java. Close this service and let it perform any required cleanup work. |
| public void | invokeAll(List<? extends HierarchicalTestExecutorService.
the test tasks to be executed testTasks)Invoke all supplied test tasks and block until their execution has finished. |
| public Future | Returns: a future that the caller can use to wait for the task's execution to be finishedthe test task to be executed testTaskSubmit the supplied test task to be executed by this service. |
| close | back to summary |
|---|---|
| public void close() Redeclares java. Close this service and let it perform any required cleanup work. For example, thread-based implementations should usually close their thread pools in this method.
| |
| invokeAll | back to summary |
|---|---|
| public void invokeAll(List<? extends HierarchicalTestExecutorService. Invoke all supplied test tasks and block until their execution has finished. Implementations may execute one or multiple of the supplied tasks in parallel as long as their execution mode is concurrent. Implementations must generally acquire and release each task's resource lock before and after its execution unless they execute all tests in the same thread which upholds the same guarantees.
| |
| submit | back to summary |
|---|---|
| public Future Submit the supplied test task to be executed by this service. Implementations may execute the task asynchronously as long as its execution mode is concurrent. Implementations must generally acquire and release the task's resource lock before and after its execution unless they execute all tests in the same thread which upholds the same guarantees.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Node. | |
| public ResourceLock | |
| public default TestDescriptor |
| execute | back to summary |
|---|---|
| public void execute() Execute this task. | |
| getExecutionMode | back to summary |
|---|---|
| public Node. Get the execution mode of this task. | |
| getResourceLock | back to summary |
|---|---|
| public ResourceLock getResourceLock() Get the resource lock of this task. | |
| getTestDescriptor | back to summary |
|---|---|
| public default TestDescriptor getTestDescriptor() Get the test descriptor of this task.
| |