Adding Label description property

Label in the GitHub API has an optional field description which had not been implemented.
This commit is contained in:
Immanuel Washington
2018-11-25 02:10:06 -05:00
parent fad203a66d
commit ec99636ef0
3 changed files with 32 additions and 4 deletions

View File

@@ -747,16 +747,20 @@ public class AppTest extends AbstractGitHubApiTestBase {
assertTrue(Pattern.matches("[0-9a-fA-F]{6}",e.getColor()));
{// CRUD
GHLabel t = r.createLabel("test", "123456");
GHLabel t = r.createLabel("test", "123456", "this is a test");
GHLabel t2 = r.getLabel("test");
assertEquals(t.getName(), t2.getName());
assertEquals(t.getColor(), "123456");
assertEquals(t.getColor(), t2.getColor());
assertEquals(t.getDescription(), "this is a test");
assertEquals(t.getDescription(), t2.getDescription());
assertEquals(t.getUrl(), t2.getUrl());
t.setColor("000000");
t.setDescription("this is also a test");
GHLabel t3 = r.getLabel("test");
assertEquals(t3.getColor(), "000000");
assertEquals(t3.getDescription(), "this is also a test");
t.delete();
}
}