mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 08:21:23 +00:00
Add getTeam by id function
This commit is contained in:
@@ -245,6 +245,17 @@ public class AppTest extends AbstractGitHubApiTestBase {
|
||||
assertNotNull(team);
|
||||
return team.hasMember(gitHub.getMyself());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testShouldFetchTeam() throws Exception {
|
||||
GHOrganization j = gitHub.getOrganization("github-api-test-org");
|
||||
GHTeam teamByName = j.getTeams().get("Core Developers");
|
||||
|
||||
GHTeam teamById = gitHub.getTeam(teamByName.getId());
|
||||
assertNotNull(teamById);
|
||||
|
||||
assertEquals(teamByName, teamById);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFetchPullRequest() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user