mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 08:21:23 +00:00
Adding Label description property
Label in the GitHub API has an optional field description which had not been implemented.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user