mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 15:50:52 +00:00
Enable automatic code formatter with CI validation
This may be controversial but it we're doing it. Having code formatting needs to be consistent and a non-issue during code review. I'm willing modify the configuration if people see a strong need, but formatting needs to be present and enforced.
This commit is contained in:
@@ -61,7 +61,8 @@ public class GitHubTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
@Test
|
||||
public void searchContent() throws Exception {
|
||||
PagedSearchIterable<GHContent> r = gitHub.searchContent().q("addClass").in("file").language("js").repo("jquery/jquery").list();
|
||||
PagedSearchIterable<GHContent> r = gitHub.searchContent().q("addClass").in("file").language("js")
|
||||
.repo("jquery/jquery").list();
|
||||
GHContent c = r.iterator().next();
|
||||
// System.out.println(c.getName());
|
||||
assertNotNull(c.getDownloadUrl());
|
||||
@@ -71,11 +72,10 @@ public class GitHubTest extends AbstractGitHubWireMockTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testListMyAuthorizations() throws IOException
|
||||
{
|
||||
public void testListMyAuthorizations() throws IOException {
|
||||
PagedIterable<GHAuthorization> list = gitHub.listMyAuthorizations();
|
||||
|
||||
for (GHAuthorization auth: list) {
|
||||
for (GHAuthorization auth : list) {
|
||||
assertNotNull(auth.getAppName());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user