Fixes per review.

- Added missing brace at end of listMyAuthorizations().
- Added unit test for listMyAuthorizations().
This commit is contained in:
Martin van Zijl
2019-10-08 13:21:48 +13:00
parent 94ceb5eaaf
commit 3559aef1a1
4 changed files with 399 additions and 1 deletions

View File

@@ -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());
}
}
}