mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 15:50:52 +00:00
Cleanup based on review
This commit is contained in:
@@ -32,13 +32,13 @@ public class GHTeamTest extends AbstractGitHubWireMockTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetPrivacy() throws IOException {
|
||||
public void testUpdatePrivacy() throws IOException {
|
||||
String teamSlug = "dummy-team";
|
||||
Privacy privacy = Privacy.CLOSED;
|
||||
|
||||
// Set the privacy.
|
||||
GHTeam team = gitHub.getOrganization(GITHUB_API_TEST_ORG).getTeamBySlug(teamSlug);
|
||||
team.setPrivacy(privacy);
|
||||
team.updatePrivacy(privacy);
|
||||
|
||||
// Check that it was set correctly.
|
||||
team = gitHub.getOrganization(GITHUB_API_TEST_ORG).getTeamBySlug(teamSlug);
|
||||
@@ -47,7 +47,7 @@ public class GHTeamTest extends AbstractGitHubWireMockTest {
|
||||
privacy = Privacy.SECRET;
|
||||
|
||||
// Set the privacy.
|
||||
team.setPrivacy(privacy);
|
||||
team.updatePrivacy(privacy);
|
||||
|
||||
// Check that it was set correctly.
|
||||
team = gitHub.getOrganization(GITHUB_API_TEST_ORG).getTeamBySlug(teamSlug);
|
||||
|
||||
Reference in New Issue
Block a user