From 3f61a56aa24dfeec8a5860b4b8838cc807bcb048 Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Fri, 15 Nov 2019 15:36:49 -0800 Subject: [PATCH] Code formatting --- .../org/kohsuke/github/GHRepositoryTest.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTest.java index 306d4e0183..9eb62c8d8e 100644 --- a/src/test/java/org/kohsuke/github/GHRepositoryTest.java +++ b/src/test/java/org/kohsuke/github/GHRepositoryTest.java @@ -56,7 +56,7 @@ public void getBranchNonExistentBut200Status() throws Exception { // Manually changed the returned status to 200 so dont take a new snapshot this.snapshotNotAllowed(); - //This should *never* happen but with mocking it was discovered + // This should *never* happen but with mocking it was discovered GHRepository repo = getRepository(); try { GHBranch branch = repo.getBranch("test/NonExistent"); @@ -219,8 +219,11 @@ public void listEmptyContributors() throws IOException { @Test public void searchRepositories() throws Exception { - PagedSearchIterable r = gitHub.searchRepositories().q("tetris").language("assembly") - .sort(GHRepositorySearchBuilder.Sort.STARS).list(); + PagedSearchIterable r = gitHub.searchRepositories() + .q("tetris") + .language("assembly") + .sort(GHRepositorySearchBuilder.Sort.STARS) + .list(); GHRepository u = r.iterator().next(); // System.out.println(u.getName()); assertNotNull(u.getId()); @@ -301,7 +304,8 @@ public void testSetTopics() throws Exception { topics.add("java"); topics.add("api-test-dummy"); repo.setTopics(topics); - assertThat("Topics retain input order (are not sort when stored)", repo.listTopics(), + assertThat("Topics retain input order (are not sort when stored)", + repo.listTopics(), contains("java", "api-test-dummy")); topics = new ArrayList<>(); @@ -309,14 +313,16 @@ public void testSetTopics() throws Exception { topics.add("api-test-dummy"); topics.add("java"); repo.setTopics(topics); - assertThat("Topics behave as a set and retain order from previous calls", repo.listTopics(), + assertThat("Topics behave as a set and retain order from previous calls", + repo.listTopics(), contains("java", "api-test-dummy", "ordered-state")); topics = new ArrayList<>(); topics.add("ordered-state"); topics.add("api-test-dummy"); repo.setTopics(topics); - assertThat("Topics retain order even when some are removed", repo.listTopics(), + assertThat("Topics retain order even when some are removed", + repo.listTopics(), contains("api-test-dummy", "ordered-state")); topics = new ArrayList<>();