Search in sources :

Example 1 with ExecutionList

use of com.google.common.util.concurrent.ExecutionList in project guava by hceylan.

the class ExecutionListTest method testNulls.

public void testNulls() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.setDefault(Executor.class, sameThreadExecutor());
    tester.setDefault(Runnable.class, DO_NOTHING);
    tester.testAllPublicInstanceMethods(new ExecutionList());
}
Also used : ExecutionList(com.google.common.util.concurrent.ExecutionList) NullPointerTester(com.google.common.testing.NullPointerTester)

Example 2 with ExecutionList

use of com.google.common.util.concurrent.ExecutionList in project guava by hceylan.

the class ExecutionListTest method testExceptionsCaught.

public void testExceptionsCaught() {
    ExecutionList list = new ExecutionList();
    list.add(THROWING_RUNNABLE, sameThreadExecutor());
    list.execute();
    list.add(THROWING_RUNNABLE, sameThreadExecutor());
}
Also used : ExecutionList(com.google.common.util.concurrent.ExecutionList)

Aggregations

ExecutionList (com.google.common.util.concurrent.ExecutionList)2 NullPointerTester (com.google.common.testing.NullPointerTester)1