jasmine.mock.framework.concurrent.MockAsyncTaskProvider Maven / Gradle / Ivy
package jasmine.mock.framework.concurrent;
import jasmine.framework.common.util.CheckUtil;
import jasmine.framework.common.util.CollectionUtil;
import jasmine.framework.common.util.ErrorUtil;
import jasmine.framework.concurrent.AsyncTaskProvider;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.Callable;
/**
* @author mh.z
*/
public class MockAsyncTaskProvider implements AsyncTaskProvider {
@Override
public void async(Runnable task) {
CheckUtil.notNull(task, "task null");
task.run();
}
@Override
public List asyncAndGet(Collection tasks) {
CheckUtil.notNull(tasks, "tasks null");
List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy