Search in sources :

Example 1 with CountedCompleter

use of java.util.concurrent.CountedCompleter in project j2objc by google.

the class CountedCompleterTest method testGetCompleter.

/**
 * getCompleter returns parent or null if at root
 */
public void testGetCompleter() {
    NoopCC a = new NoopCC();
    assertNull(a.getCompleter());
    CountedCompleter b = new NoopCC(a);
    assertSame(a, b.getCompleter());
    CountedCompleter c = new NoopCC(b);
    assertSame(b, c.getCompleter());
}
Also used : CountedCompleter(java.util.concurrent.CountedCompleter)

Aggregations

CountedCompleter (java.util.concurrent.CountedCompleter)1