@@ -103,7 +103,7 @@ public void testListDeployments() throws IOException {
103
103
assertFalse (Iterables .isEmpty (deployments ));
104
104
GHDeployment unitTestDeployment = deployments .get (0 );
105
105
assertEquals ("unittest" ,unitTestDeployment .getEnvironment ());
106
- assertEquals ("master" ,unitTestDeployment .getRef ());
106
+ assertEquals ("master" , unitTestDeployment .getRef ());
107
107
}
108
108
109
109
@ Test
@@ -283,7 +283,7 @@ public void testOrgFork() throws Exception {
283
283
@ Test
284
284
public void testGetTeamsForRepo () throws Exception {
285
285
kohsuke ();
286
- assertEquals (1 ,gitHub .getOrganization ("github-api-test-org" ).getRepository ("testGetTeamsForRepo" ).getTeams ().size ());
286
+ assertEquals (1 , gitHub .getOrganization ("github-api-test-org" ).getRepository ("testGetTeamsForRepo" ).getTeams ().size ());
287
287
}
288
288
289
289
@ Test
@@ -306,7 +306,7 @@ public void testOrgTeams() throws Exception {
306
306
assertNotNull (t .getName ());
307
307
sz ++;
308
308
}
309
- assertTrue (sz < 100 );
309
+ assertTrue (sz < 100 );
310
310
}
311
311
312
312
@ Test
@@ -498,7 +498,7 @@ public void testOrgRepositories() throws IOException {
498
498
long start = System .currentTimeMillis ();
499
499
Map <String , GHRepository > repos = j .getRepositories ();
500
500
long end = System .currentTimeMillis ();
501
- System .out .printf ("%d repositories in %dms\n " ,repos .size (),end - start );
501
+ System .out .printf ("%d repositories in %dms\n " , repos .size (), end - start );
502
502
}
503
503
504
504
@ Test
@@ -524,7 +524,7 @@ public void testCommitStatus() throws Exception {
524
524
state = lst .get (0 );
525
525
System .out .println (state );
526
526
assertEquals ("testing!" ,state .getDescription ());
527
- assertEquals ("http://kohsuke.org/" ,state .getTargetUrl ());
527
+ assertEquals ("http://kohsuke.org/" , state .getTargetUrl ());
528
528
}
529
529
530
530
@ Test
@@ -650,6 +650,14 @@ public void testMemberPagenation() throws IOException {
650
650
assertFalse (all .isEmpty ());
651
651
}
652
652
653
+ @ Test
654
+ public void testIssueSearch () throws IOException {
655
+ PagedSearchIterable <GHIssue > r = gitHub .searchIssues ().mentions ("kohsuke" ).isOpen ().list ();
656
+ for (GHIssue i : r ) {
657
+ System .out .println (i .getTitle ());
658
+ }
659
+ }
660
+
653
661
private void kohsuke () {
654
662
String login = getUser ().getLogin ();
655
663
Assume .assumeTrue (login .equals ("kohsuke" ) || login .equals ("kohsuke2" ));
0 commit comments