mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-05 08:21:21 +00:00
Reworked this change a bit.
- GHApiInfo need not be public because it's not publicly exposed. - Throwing an exception is better IMO as it allows richer error message, including the differentiation between unreachable host name vs wrong URL, and reporting the API endpoint URL that was actually tried.
This commit is contained in:
@@ -124,6 +124,6 @@ public class GitHubTest {
|
||||
@Test
|
||||
public void testGitHubIsApiUrlValid() throws IOException {
|
||||
GitHub github = GitHub.connectAnonymously();
|
||||
assertTrue(github.isApiUrlValid());
|
||||
github.checkApiUrlValidity();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user