mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 08:21:23 +00:00
Fixes per review.
- Added missing brace at end of listMyAuthorizations(). - Added unit test for listMyAuthorizations().
This commit is contained in:
@@ -69,5 +69,14 @@ public class GitHubTest extends AbstractGitHubWireMockTest {
|
||||
assertEquals("jquery/jquery", c.getOwner().getFullName());
|
||||
assertTrue(r.getTotalCount() > 0);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testListMyAuthorizations() throws IOException
|
||||
{
|
||||
PagedIterable<GHAuthorization> list = gitHub.listMyAuthorizations();
|
||||
|
||||
for (GHAuthorization auth: list) {
|
||||
assertNotNull(auth.getAppName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user