File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ public void testCommit() throws Exception {
362362 .getRepository ("jenkins" )
363363 .getCommit ("08c1c9970af4d609ae754fbe803e06186e3206f7" );
364364 assertThat (commit .getParents ().size (), equalTo (1 ));
365- assertThat (commit .listFiles ().toList ().size (), equalTo (1 ));
365+ assertThat (commit .listFiles ().withPageSize ( 50 ). toList ().size (), equalTo (1 ));
366366 assertThat (commit .getHtmlUrl ().toString (),
367367 equalTo ("https://github.com/jenkinsci/jenkins/commit/08c1c9970af4d609ae754fbe803e06186e3206f7" ));
368368 assertThat (commit .getLinesAdded (), equalTo (40 ));
Original file line number Diff line number Diff line change @@ -294,10 +294,11 @@ public void searchContent() throws Exception {
294294
295295 PagedSearchIterable <GHContent > r4 = searchBuilder .list ();
296296
297- GHContent c4 = r4 .iterator ().next ();
297+ GHContent c4 = r4 .withPageSize ( 25 ). iterator ().next ();
298298 assertThat (c4 .getPath (), not (equalTo (c2 .getPath ())));
299299 assertThat (c4 .getPath (), not (equalTo (c3 .getPath ())));
300300 assertThat (r4 .getTotalCount (), equalTo (r2 .getTotalCount ()));
301+ assertThat (r4 .isIncomplete (), equalTo (false ));
301302
302303 // Verify qualifier not allowed to be empty
303304 IllegalArgumentException e = Assert .assertThrows (IllegalArgumentException .class ,
Original file line number Diff line number Diff line change 22 "id" : " a9b8870b-33d7-4164-a407-310342d68536" ,
33 "name" : " search_code" ,
44 "request" : {
5- "url" : " /search/code?sort=indexed&order=desc&q=addClass+in%3Afile+language%3Ajs+repo%3Ajquery%2Fjquery" ,
5+ "url" : " /search/code?sort=indexed&order=desc&q=addClass+in%3Afile+language%3Ajs+repo%3Ajquery%2Fjquery&per_page=25 " ,
66 "method" : " GET" ,
77 "headers" : {
88 "Accept" : {
You can’t perform that action at this time.
0 commit comments