Skip to content

Commit 44fefbb

Browse files
committed
Rename discussion url method
1 parent 12d4f7a commit 44fefbb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/org/kohsuke/github/GHRelease.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class GHRelease extends GHObject {
4141
*
4242
* @return the discussion url
4343
*/
44-
public String getDiscussion_url() {
44+
public String getDiscussionUrl() {
4545
return discussion_url;
4646
}
4747

src/test/java/org/kohsuke/github/GHReleaseTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void testCreateSimpleRelease() throws Exception {
2222
assertThat(releaseCheck, notNullValue());
2323
assertThat(releaseCheck.getTagName(), is(tagName));
2424
assertThat(releaseCheck.isPrerelease(), is(false));
25-
assertThat(releaseCheck.getDiscussion_url(), notNullValue());
25+
assertThat(releaseCheck.getDiscussionUrl(), notNullValue());
2626
} finally {
2727
release.delete();
2828
assertThat(repo.getRelease(release.getId()), nullValue());
@@ -41,7 +41,7 @@ public void testCreateSimpleReleaseWithoutDiscussion() throws Exception {
4141
try {
4242
assertThat(releaseCheck, notNullValue());
4343
assertThat(releaseCheck.getTagName(), is(tagName));
44-
assertThat(releaseCheck.getDiscussion_url(), nullValue());
44+
assertThat(releaseCheck.getDiscussionUrl(), nullValue());
4545
} finally {
4646
release.delete();
4747
assertThat(repo.getRelease(release.getId()), nullValue());
@@ -101,12 +101,12 @@ public void testUpdateRelease() throws Exception {
101101
assertThat(releaseCheck, notNullValue());
102102
assertThat(releaseCheck.getTagName(), is(tagName));
103103
assertThat(releaseCheck.isPrerelease(), is(true));
104-
assertThat(releaseCheck.getDiscussion_url(), nullValue());
104+
assertThat(releaseCheck.getDiscussionUrl(), nullValue());
105105

106106
assertThat(updateCheck, notNullValue());
107107
assertThat(updateCheck.getTagName(), is(tagName));
108108
assertThat(updateCheck.isPrerelease(), is(false));
109-
assertThat(updateCheck.getDiscussion_url(), notNullValue());
109+
assertThat(updateCheck.getDiscussionUrl(), notNullValue());
110110

111111
} finally {
112112
release.delete();

0 commit comments

Comments
 (0)