Add twitter_username to Person and bio and hireable to User

This commit is contained in:
Chew
2020-06-07 00:55:44 -05:00
parent 10482c0141
commit dee4e6caff
6 changed files with 111 additions and 3 deletions

View File

@@ -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());

View File

@@ -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());
}
}