@@ -54,11 +54,11 @@ public void testEquals_true() {
5454
5555 @ Test
5656 public void testEquals_false () {
57- GithubSecurityRealm a = new GithubSecurityRealm ("http:jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org" );
58- GithubSecurityRealm b = new GithubSecurityRealm ("http:jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org,repo" );
59- GithubSecurityRealm c = new GithubSecurityRealm ("http:jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org" , "" , false );
60- GithubSecurityRealm d = new GithubSecurityRealm ("http:jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org,repo" , "" , false );
61- GithubSecurityRealm e = new GithubSecurityRealm ("http:jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org,repo" , "example.com" , false );
57+ GithubSecurityRealm a = new GithubSecurityRealm ("http:// jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org" );
58+ GithubSecurityRealm b = new GithubSecurityRealm ("http:// jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org,repo" );
59+ GithubSecurityRealm c = new GithubSecurityRealm ("http:// jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org" , "" , false );
60+ GithubSecurityRealm d = new GithubSecurityRealm ("http:// jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org,repo" , "" , false );
61+ GithubSecurityRealm e = new GithubSecurityRealm ("http:// jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org,repo" , "example.com" , false );
6262 assertFalse (a .equals (b ));
6363 assertFalse (a .equals (d ));
6464 assertFalse (a .equals ("" ));
@@ -70,8 +70,8 @@ public void testEquals_false() {
7070
7171 @ Test
7272 public void testHasScope_true () {
73- GithubSecurityRealm a = new GithubSecurityRealm ("http:jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org,user,user:email" );
74- GithubSecurityRealm b = new GithubSecurityRealm ("http:jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org,user,user:email" , "example.com" , false );
73+ GithubSecurityRealm a = new GithubSecurityRealm ("http:// jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org,user,user:email" );
74+ GithubSecurityRealm b = new GithubSecurityRealm ("http:// jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org,user,user:email" , "example.com" , false );
7575 assertTrue (a .hasScope ("user" ));
7676 assertTrue (a .hasScope ("read:org" ));
7777 assertTrue (a .hasScope ("user:email" ));
@@ -82,8 +82,8 @@ public void testHasScope_true() {
8282
8383 @ Test
8484 public void testHasScope_false () {
85- GithubSecurityRealm a = new GithubSecurityRealm ("http:jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org,user,user:email" );
86- GithubSecurityRealm b = new GithubSecurityRealm ("http:jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org,user,user:email" , "example.com" , false );
85+ GithubSecurityRealm a = new GithubSecurityRealm ("http:// jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org,user,user:email" );
86+ GithubSecurityRealm b = new GithubSecurityRealm ("http:// jenkins.acme.com" , "http://jenkins.acme.com/api/v3" , "someid" , "somesecret" , "read:org,user,user:email" , "example.com" , false );
8787 assertFalse (a .hasScope ("somescope" ));
8888 assertFalse (b .hasScope ("somescope" ));
8989 }
0 commit comments