java.lang.Object
com.github.mizosoft.methanol.testing.MockExecutor
- All Implemented Interfaces:
Executor
An
Executor
that records submitted tasks and allows running them later.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MockExecutor
public MockExecutor()
-
-
Method Details
-
execute
-
hasNext
public boolean hasNext() -
runNext
public void runNext() -
runAll
public void runAll() -
taskCount
public int taskCount() -
reject
public void reject(boolean on) -
executeDirectly
public void executeDirectly(boolean on) -
awaitNext
-
toString
-