mirror of
https://github.com/google/nomulus
synced 2026-01-10 07:57:58 +00:00
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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user