QueryAccounts: Support parameter 'start'
The 'start' query parameter can be supplied to skip a number of accounts from the list. Change-Id: I31497d0db3ac6049a645fe2d29984797bd6cfcae Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
@@ -256,6 +256,17 @@ public abstract class AbstractQueryAccountsTest extends GerritServerTests {
|
||||
assertQuery(newQuery(domain).withLimit(2), user1, user2);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void withStart() throws Exception {
|
||||
String domain = name("test.com");
|
||||
AccountInfo user1 = newAccountWithEmail("user1", "user1@" + domain);
|
||||
AccountInfo user2 = newAccountWithEmail("user2", "user2@" + domain);
|
||||
AccountInfo user3 = newAccountWithEmail("user3", "user3@" + domain);
|
||||
|
||||
assertQuery(domain, user1, user2, user3);
|
||||
assertQuery(newQuery(domain).withStart(1), user2, user3);
|
||||
}
|
||||
|
||||
protected AccountInfo newAccount(String username) throws Exception {
|
||||
return newAccountWithEmail(username, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user