use of org.junit.runners.model.MultipleFailureException in project android-priority-jobqueue by yigit.
the class ApplicationContextTests method getContextTest.
public void getContextTest(boolean persistent) throws InterruptedException, MultipleFailureException {
final ContextCheckJob addedJob = new ContextCheckJob(new Params(1).setPersistent(persistent));
final JobManager jobManager = createJobManager();
waitUntilAJobIsDone(jobManager, new WaitUntilCallback() {
@Override
public void run() {
jobManager.addJob(addedJob);
}
@Override
public void assertJob(Job job) {
}
});
if (!errors.isEmpty()) {
throw new MultipleFailureException(errors);
}
}
Aggregations