assertEquals(0, searchResultForReporterWseliga.getTotal());
}
@Test
public void testJqlSearchWithPaging() {
final SearchResult searchResultForNull = client.getSearchClient().searchJql(null, 3, 3, null).claim();
assertEquals(11, searchResultForNull.getTotal());
assertEquals(3, Iterables.size(searchResultForNull.getIssues()));
assertEquals(3, searchResultForNull.getStartIndex());
assertEquals(3, searchResultForNull.getMaxResults());
final SearchResult search2 = client.getSearchClient().searchJql("assignee is not EMPTY", 2, 1, null).claim();
assertEquals(11, search2.getTotal());
assertEquals(2, Iterables.size(search2.getIssues()));
assertEquals("TST-6", Iterables.get(search2.getIssues(), 0).getKey());
assertEquals("TST-5", Iterables.get(search2.getIssues(), 1).getKey());
assertEquals(1, search2.getStartIndex());
assertEquals(2, search2.getMaxResults());
setUser1();
final SearchResult search3 = client.getSearchClient().searchJql("assignee is not EMPTY", 10, 5, null).claim();
assertEquals(10, search3.getTotal());
assertEquals(5, Iterables.size(search3.getIssues()));
assertEquals(5, search3.getStartIndex());
assertEquals(10, search3.getMaxResults());
}