Assert that LORDN tasks were correctly enqueued in tests

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=136373606
This commit is contained in:
mcilwain 2016-10-17 11:28:45 -07:00 committed by Ben McIlwain
parent 00234a1038
commit 5da24fd361
2 changed files with 20 additions and 5 deletions

View file

@ -250,8 +250,10 @@ public class TaskQueueHelper {
}
/** Ensures that the named queue contains no tasks. */
public static void assertNoTasksEnqueued(String queueName) throws Exception {
assertThat(getQueueInfo(queueName).getCountTasks()).isEqualTo(0);
public static void assertNoTasksEnqueued(String ... queueNames) throws Exception {
for (String queueName : queueNames) {
assertThat(getQueueInfo(queueName).getCountTasks()).isEqualTo(0);
}
}
/** Returns the value for the param on a task info, or empty if it is missing. */