mirror of
https://github.com/google/nomulus.git
synced 2025-07-25 12:08:36 +02: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:
parent
00234a1038
commit
5da24fd361
2 changed files with 20 additions and 5 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue