mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-23 15:50:48 +00:00
Add/restore test for getTeam
This commit is contained in:
@@ -234,16 +234,16 @@ public class AppTest extends AbstractGitHubWireMockTest {
|
||||
return team.hasMember(gitHub.getMyself());
|
||||
}
|
||||
|
||||
@Ignore("Needs mocking check")
|
||||
@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());
|
||||
GHTeam teamById = j.getTeam(teamByName.getId());
|
||||
assertNotNull(teamById);
|
||||
|
||||
assertEquals(teamByName, teamById);
|
||||
assertEquals(teamByName.getId(), teamById.getId());
|
||||
assertEquals(teamByName.getDescription(), teamById.getDescription());
|
||||
}
|
||||
|
||||
@Ignore("Needs mocking check")
|
||||
|
||||
Reference in New Issue
Block a user