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 {
362
362
.getRepository ("jenkins" )
363
363
.getCommit ("08c1c9970af4d609ae754fbe803e06186e3206f7" );
364
364
assertThat (commit .getParents ().size (), equalTo (1 ));
365
- assertThat (commit .listFiles ().toList ().size (), equalTo (1 ));
365
+ assertThat (commit .listFiles ().withPageSize ( 50 ). toList ().size (), equalTo (1 ));
366
366
assertThat (commit .getHtmlUrl ().toString (),
367
367
equalTo ("https://github.com/jenkinsci/jenkins/commit/08c1c9970af4d609ae754fbe803e06186e3206f7" ));
368
368
assertThat (commit .getLinesAdded (), equalTo (40 ));
Original file line number Diff line number Diff line change @@ -294,10 +294,11 @@ public void searchContent() throws Exception {
294
294
295
295
PagedSearchIterable <GHContent > r4 = searchBuilder .list ();
296
296
297
- GHContent c4 = r4 .iterator ().next ();
297
+ GHContent c4 = r4 .withPageSize ( 25 ). iterator ().next ();
298
298
assertThat (c4 .getPath (), not (equalTo (c2 .getPath ())));
299
299
assertThat (c4 .getPath (), not (equalTo (c3 .getPath ())));
300
300
assertThat (r4 .getTotalCount (), equalTo (r2 .getTotalCount ()));
301
+ assertThat (r4 .isIncomplete (), equalTo (false ));
301
302
302
303
// Verify qualifier not allowed to be empty
303
304
IllegalArgumentException e = Assert .assertThrows (IllegalArgumentException .class ,
Original file line number Diff line number Diff line change 2
2
"id" : " a9b8870b-33d7-4164-a407-310342d68536" ,
3
3
"name" : " search_code" ,
4
4
"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 " ,
6
6
"method" : " GET" ,
7
7
"headers" : {
8
8
"Accept" : {
You can’t perform that action at this time.
0 commit comments