-
Notifications
You must be signed in to change notification settings - Fork 726
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #478 from martinvanzijl/issue_460_team_description…
…_field Added description field to GHTeam class.
- Loading branch information
Showing
175 changed files
with
26,155 additions
and
634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package org.kohsuke.github; | ||
|
||
import org.junit.Test; | ||
|
||
import java.io.IOException; | ||
import java.util.Random; | ||
|
||
public class GHTeamTest extends AbstractGitHubApiWireMockTest { | ||
|
||
@Test | ||
public void testSetDescription() throws IOException { | ||
|
||
String description = "Updated by API Test"; | ||
String teamSlug = "dummy-team"; | ||
|
||
// Set the description. | ||
GHTeam team = gitHub.getOrganization(GITHUB_API_TEST_ORG).getTeamBySlug(teamSlug); | ||
team.setDescription(description); | ||
|
||
// Check that it was set correctly. | ||
team = gitHub.getOrganization(GITHUB_API_TEST_ORG).getTeamBySlug(teamSlug); | ||
assertEquals(description, team.getDescription()); | ||
|
||
description += "Modified"; | ||
|
||
// Set the description. | ||
team.setDescription(description); | ||
|
||
// Check that it was set correctly. | ||
team = gitHub.getOrganization(GITHUB_API_TEST_ORG).getTeamBySlug(teamSlug); | ||
assertEquals(description, team.getDescription()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.