@@ -324,7 +324,7 @@ public void testGetTeamsForRepo() throws Exception {
324324 @ Test
325325 public void testMembership () throws Exception {
326326 Set <String > members = gitHub .getOrganization (GITHUB_API_TEST_ORG ).getRepository ("jenkins" ).getCollaboratorNames ();
327- System .out .println (members .contains ("kohsuke" ));
327+ // System.out.println(members.contains("kohsuke"));
328328 }
329329
330330 @ Test
@@ -391,7 +391,7 @@ public void testQueryCommits() throws Exception {
391391 List <String > sha1 = new ArrayList <String >();
392392 for (GHCommit c : gitHub .getUser ("jenkinsci" ).getRepository ("jenkins" ).queryCommits ()
393393 .since (new Date (1199174400000L )).until (1201852800000L ).path ("pom.xml" ).list ()) {
394- System .out .println (c .getSHA1 ());
394+ // System.out.println(c.getSHA1());
395395 sha1 .add (c .getSHA1 ());
396396 }
397397 assertEquals ("1cccddb22e305397151b2b7b87b4b47d74ca337b" , sha1 .get (0 ));
@@ -403,7 +403,7 @@ public void testQueryCommits() throws Exception {
403403 public void testBranches () throws Exception {
404404 Map <String , GHBranch > b =
405405 gitHub .getUser ("jenkinsci" ).getRepository ("jenkins" ).getBranches ();
406- System .out .println (b );
406+ // System.out.println(b);
407407 }
408408
409409 @ Test
@@ -412,7 +412,7 @@ public void testCommitComment() throws Exception {
412412 PagedIterable <GHCommitComment > comments = r .listCommitComments ();
413413 List <GHCommitComment > batch = comments .iterator ().nextPage ();
414414 for (GHCommitComment comment : batch ) {
415- System .out .println (comment .getBody ());
415+ // System.out.println(comment.getBody());
416416 assertSame (comment .getOwner (), r );
417417 }
418418 }
@@ -421,9 +421,9 @@ public void testCommitComment() throws Exception {
421421 public void testCreateCommitComment () throws Exception {
422422 GHCommit commit = gitHub .getUser ("kohsuke" ).getRepository ("sandbox-ant" ).getCommit ("8ae38db0ea5837313ab5f39d43a6f73de3bd9000" );
423423 GHCommitComment c = commit .createComment ("[testing](http://kohsuse.org/)" );
424- System .out .println (c );
424+ // System.out.println(c);
425425 c .update ("updated text" );
426- System .out .println (c );
426+ // System.out.println(c);
427427 c .delete ();
428428 }
429429
@@ -432,7 +432,7 @@ public void tryHook() throws Exception {
432432 kohsuke ();
433433 GHRepository r = gitHub .getOrganization (GITHUB_API_TEST_ORG ).getRepository ("github-api" );
434434 GHHook hook = r .createWebHook (new URL ("http://www.google.com/" ));
435- System .out .println (hook );
435+ // System.out.println(hook);
436436
437437 if (mockGitHub .isUseProxy ()) {
438438 r = gitHubBeforeAfter .getOrganization (GITHUB_API_TEST_ORG ).getRepository ("github-api" );
@@ -455,7 +455,7 @@ public void testEventApi() throws Exception {
455455 @ Ignore ("Needs mocking check" )
456456 @ Test
457457 public void testApp () throws IOException {
458- System .out .println (gitHub .getMyself ().getEmails ());
458+ // System.out.println(gitHub.getMyself().getEmails());
459459
460460// GHRepository r = gitHub.getOrganization("jenkinsci").createRepository("kktest4", "Kohsuke's test", "http://kohsuke.org/", "Everyone", true);
461461// r.fork();
@@ -466,8 +466,8 @@ public void testApp() throws IOException {
466466
467467// GHPullRequest i = gitHub.getOrganization("jenkinsci").getRepository("sandbox").getPullRequest(1);
468468// for (GHIssueComment c : i.getComments())
469- // System.out.println(c);
470- // System.out.println(i);
469+ // // System.out.println(c);
470+ // // System.out.println(i);
471471
472472// gitHub.getMyself().getRepository("perforce-plugin").setEmailServiceHook("kk@kohsuke.org");
473473
@@ -480,9 +480,9 @@ public void testApp() throws IOException {
480480// tryTeamCreation(gitHub);
481481
482482// t.add(gitHub.getMyself());
483- // System.out.println(t.getMembers());
483+ // // System.out.println(t.getMembers());
484484// t.remove(gitHub.getMyself());
485- // System.out.println(t.getMembers());
485+ // // System.out.println(t.getMembers());
486486
487487// GHRepository r = gitHub.getOrganization("HudsonLabs").createRepository("auto-test", "some description", "http://kohsuke.org/", "Plugin Developers", true);
488488
@@ -491,17 +491,17 @@ public void testApp() throws IOException {
491491//// hub.createRepository("test","test repository",null,true);
492492//// hub.getUserTest("kohsuke").getRepository("test").delete();
493493//
494- // System.out.println(hub.getUserTest("kohsuke").getRepository("hudson").getCollaborators());
494+ // // System.out.println(hub.getUserTest("kohsuke").getRepository("hudson").getCollaborators());
495495 }
496496
497497 private void tryDisablingIssueTrackers (GitHub gitHub ) throws IOException {
498498 for (GHRepository r : gitHub .getOrganization ("jenkinsci" ).getRepositories ().values ()) {
499499 if (r .hasIssues ()) {
500500 if (r .getOpenIssueCount () == 0 ) {
501- System .out .println ("DISABLED " + r .getName ());
501+ // System.out.println("DISABLED " + r.getName());
502502 r .enableIssueTracker (false );
503503 } else {
504- System .out .println ("UNTOUCHED " + r .getName ());
504+ // System.out.println("UNTOUCHED " + r.getName());
505505 }
506506 }
507507 }
@@ -510,16 +510,16 @@ private void tryDisablingIssueTrackers(GitHub gitHub) throws IOException {
510510 private void tryDisablingWiki (GitHub gitHub ) throws IOException {
511511 for (GHRepository r : gitHub .getOrganization ("jenkinsci" ).getRepositories ().values ()) {
512512 if (r .hasWiki ()) {
513- System .out .println ("DISABLED " + r .getName ());
513+ // System.out.println("DISABLED " + r.getName());
514514 r .enableWiki (false );
515515 }
516516 }
517517 }
518518
519519 private void tryUpdatingIssueTracker (GitHub gitHub ) throws IOException {
520520 GHRepository r = gitHub .getOrganization ("jenkinsci" ).getRepository ("lib-task-reactor" );
521- System .out .println (r .hasIssues ());
522- System .out .println (r .getOpenIssueCount ());
521+ // System.out.println(r.hasIssues());
522+ // System.out.println(r.getOpenIssueCount());
523523 r .enableIssueTracker (false );
524524 }
525525
@@ -537,9 +537,9 @@ private void testPostCommitHook(GitHub gitHub) throws IOException {
537537 GHRepository r = gitHub .getMyself ().getRepository ("foo" );
538538 Set <URL > hooks = r .getPostCommitHooks ();
539539 hooks .add (new URL ("http://kohsuke.org/test" ));
540- System .out .println (hooks );
540+ // System.out.println(hooks);
541541 hooks .remove (new URL ("http://kohsuke.org/test" ));
542- System .out .println (hooks );
542+ // System.out.println(hooks);
543543 }
544544
545545 @ Test
@@ -549,7 +549,7 @@ public void testOrgRepositories() throws IOException {
549549 long start = System .currentTimeMillis ();
550550 Map <String , GHRepository > repos = j .getRepositories ();
551551 long end = System .currentTimeMillis ();
552- System .out .printf ("%d repositories in %dms\n " , repos .size (), end - start );
552+ // System.out.printf("%d repositories in %dms\n", repos.size(), end - start);
553553 }
554554
555555 @ Test
@@ -573,7 +573,7 @@ public void testCommitStatus() throws Exception {
573573
574574 List <GHCommitStatus > lst = r .listCommitStatuses ("ecbfdd7315ef2cf04b2be7f11a072ce0bd00c396" ).asList ();
575575 state = lst .get (0 );
576- System .out .println (state );
576+ // System.out.println(state);
577577 assertEquals ("testing!" , state .getDescription ());
578578 assertEquals ("http://kohsuke.org/" , state .getTargetUrl ());
579579 }
@@ -635,7 +635,7 @@ public void testCreateRelease() throws Exception {
635635 assertEquals (ref .getRef (), "refs/heads/" + releaseName );
636636
637637 for (Map .Entry <String , GHBranch > entry : r .getBranches ().entrySet ()) {
638- System .out .println (entry .getKey () + "/" + entry .getValue ());
638+ // System.out.println(entry.getKey() + "/" + entry.getValue());
639639 if (releaseName .equals (entry .getValue ().getName ())) {
640640 return ;
641641 }
@@ -659,10 +659,10 @@ public void testRef() throws IOException {
659659 public void directoryListing () throws IOException {
660660 List <GHContent > children = gitHub .getRepository ("jenkinsci/jenkins" ).getDirectoryContent ("core" );
661661 for (GHContent c : children ) {
662- System .out .println (c .getName ());
662+ // System.out.println(c.getName());
663663 if (c .isDirectory ()) {
664664 for (GHContent d : c .listDirectoryContent ()) {
665- System .out .println (" " + d .getName ());
665+ // System.out.println(" " + d.getName());
666666 }
667667 }
668668 }
@@ -702,7 +702,7 @@ public void testCommitStatusContext() throws IOException {
702702 public void testMemberPagenation () throws IOException {
703703 Set <GHUser > all = new HashSet <GHUser >();
704704 for (GHUser u : gitHub .getOrganization (GITHUB_API_TEST_ORG ).getTeamByName ("Core Developers" ).listMembers ()) {
705- System .out .println (u .getLogin ());
705+ // System.out.println(u.getLogin());
706706 all .add (u );
707707 }
708708 assertFalse (all .isEmpty ());
@@ -723,7 +723,7 @@ public void testCommitSearch() throws IOException {
723723 public void testIssueSearch () throws IOException {
724724 PagedSearchIterable <GHIssue > r = gitHub .searchIssues ().mentions ("kohsuke" ).isOpen ().list ();
725725 for (GHIssue i : r ) {
726- System .out .println (i .getTitle ());
726+ // System.out.println(i.getTitle());
727727 }
728728 }
729729
@@ -771,7 +771,7 @@ public void testRepoLabel() throws IOException {
771771 GHRepository r = gitHub .getRepository ("github-api-test-org/test-labels" );
772772 List <GHLabel > lst = r .listLabels ().asList ();
773773 for (GHLabel l : lst ) {
774- System .out .println (l .getName ());
774+ // System.out.println(l.getName());
775775 }
776776 assertTrue (lst .size () > 5 );
777777 GHLabel e = r .getLabel ("enhancement" );
@@ -868,10 +868,10 @@ public void notifications() throws Exception {
868868 @ Test
869869 public void checkToString () throws Exception {
870870 GHUser u = gitHub .getUser ("rails" );
871- System .out .println (u );
871+ // System.out.println(u);
872872 GHRepository r = u .getRepository ("rails" );
873- System .out .println (r );
874- System .out .println (r .getIssue (1 ));
873+ // System.out.println(r);
874+ // System.out.println(r.getIssue(1));
875875 }
876876
877877 @ Test
0 commit comments