Add/restore test for getTeam

This commit is contained in:
Karol Lassak
2020-03-17 11:18:33 +01:00
parent 157724bff8
commit 2aebe97f9f
2 changed files with 5 additions and 5 deletions

View File

@@ -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")