mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-23 15:50:48 +00:00
Add twitter_username to Person and bio and hireable to User
This commit is contained in:
@@ -11,7 +11,7 @@ public class GHObjectTest extends org.kohsuke.github.AbstractGitHubWireMockTest
|
||||
GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG);
|
||||
assertThat(org.toString(),
|
||||
containsString(
|
||||
"login=hub4j-test-org,location=<null>,blog=<null>,email=<null>,name=<null>,company=<null>,type=Organization,followers=0,following=0"));
|
||||
"login=hub4j-test-org,location=<null>,blog=<null>,email=<null>,bio=<null>,name=<null>,company=<null>,type=Organization,followers=0,following=0,hireable=false"));
|
||||
|
||||
// getResponseHeaderFields is deprecated but we should not break it.
|
||||
assertThat(org.getResponseHeaderFields(), notNullValue());
|
||||
|
||||
@@ -102,4 +102,11 @@ public class GHUserTest extends AbstractGitHubWireMockTest {
|
||||
repository.delete();
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void verifyBioAndHireable() throws IOException {
|
||||
GHUser u = gitHub.getUser("GitHub");
|
||||
assertNotNull(u.getBio());
|
||||
assertNotNull(u.isHireable());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user