mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 15:50:52 +00:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user