Merge pull request #1040 from bitwiseman/bugfix/reposity-id-type

Fix the type of the id parameter of Github#getRepositoryById
This commit is contained in:
Liam Newman
2021-02-26 14:27:41 -08:00
committed by GitHub
10 changed files with 1202 additions and 0 deletions

View File

@@ -45,6 +45,14 @@ public class GHContentIntegrationTest extends AbstractGitHubWireMockTest {
repo = gitHub.getRepository("hub4j-test-org/GHContentIntegrationTest");
}
@Test
public void testGetRepository() throws Exception {
GHRepository testRepo = gitHub.getRepositoryById(repo.getId());
assertThat(testRepo.getName(), equalTo(repo.getName()));
testRepo = gitHub.getRepositoryById(Long.toString(repo.getId()));
assertThat(testRepo.getName(), equalTo(repo.getName()));
}
@Test
public void testGetFileContent() throws Exception {
repo = gitHub.getRepository("hub4j-test-org/GHContentIntegrationTest");