Top Inners Constructors Methods
org.testng.internal.thread

public final Class Async

extends Object
Class Inheritance
Imports
java.util.List, java.util.concurrent.CompletableFuture, .ExecutorService, org.testng.ITestResult, org.testng.internal.invokers.TestMethodWithDataProviderMethodWorker

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static CompletableFuture<List<ITestResult>>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Asyncback to summary
private Async()

Method Detail

runback to summary
public static CompletableFuture<List<ITestResult>> run(TestMethodWithDataProviderMethodWorker worker, ExecutorService service)
org.testng.internal.thread back to summary

private Class Async.AsyncTask

extends Object
implements Runnable, Comparable<Async.AsyncTask>
Class Inheritance
All Implemented Interfaces
java.lang.Comparable, java.lang.Runnable

Field Summary

Modifier and TypeField and Description
private final CompletableFuture<List<ITestResult>>
private final TestMethodWithDataProviderMethodWorker

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
compareTo(Async.AsyncTask
the object to be compared.
o
)

Implements java.lang.Comparable.compareTo.

Compares this object with the specified object for order.
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

resultback to summary
private final CompletableFuture<List<ITestResult>> result
workerback to summary
private final TestMethodWithDataProviderMethodWorker worker

Constructor Detail

AsyncTaskback to summary
public AsyncTask(TestMethodWithDataProviderMethodWorker worker)

Method Detail

compareToback to summary
public int compareTo(Async.AsyncTask o)

Implements java.lang.Comparable.compareTo.

Doc from java.lang.Comparable.compareTo.

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 signum(x.compareTo(y)) == -signum(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(y) > 0 && y.compareTo(z) > 0) implies x.compareTo(z) > 0.

Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z)) == signum(y.compareTo(z)), for all z.

Parameters
o:Async.AsyncTask

the object to be compared.

Returns:int

a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Annotations
@Override
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override