Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6df5a0d

Browse filesBrowse files
committed
Added a test
1 parent 15c18c5 commit 6df5a0d
Copy full SHA for 6df5a0d

File tree

Expand file treeCollapse file tree

1 file changed

+13
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+13
-5
lines changed

‎src/test/java/org/kohsuke/github/AppTest.java

Copy file name to clipboardExpand all lines: src/test/java/org/kohsuke/github/AppTest.java
+13-5Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void testListDeployments() throws IOException {
103103
assertFalse(Iterables.isEmpty(deployments));
104104
GHDeployment unitTestDeployment = deployments.get(0);
105105
assertEquals("unittest",unitTestDeployment.getEnvironment());
106-
assertEquals("master",unitTestDeployment.getRef());
106+
assertEquals("master", unitTestDeployment.getRef());
107107
}
108108

109109
@Test
@@ -283,7 +283,7 @@ public void testOrgFork() throws Exception {
283283
@Test
284284
public void testGetTeamsForRepo() throws Exception {
285285
kohsuke();
286-
assertEquals(1,gitHub.getOrganization("github-api-test-org").getRepository("testGetTeamsForRepo").getTeams().size());
286+
assertEquals(1, gitHub.getOrganization("github-api-test-org").getRepository("testGetTeamsForRepo").getTeams().size());
287287
}
288288

289289
@Test
@@ -306,7 +306,7 @@ public void testOrgTeams() throws Exception {
306306
assertNotNull(t.getName());
307307
sz++;
308308
}
309-
assertTrue(sz<100);
309+
assertTrue(sz < 100);
310310
}
311311

312312
@Test
@@ -498,7 +498,7 @@ public void testOrgRepositories() throws IOException {
498498
long start = System.currentTimeMillis();
499499
Map<String, GHRepository> repos = j.getRepositories();
500500
long end = System.currentTimeMillis();
501-
System.out.printf("%d repositories in %dms\n",repos.size(),end-start);
501+
System.out.printf("%d repositories in %dms\n", repos.size(), end - start);
502502
}
503503

504504
@Test
@@ -524,7 +524,7 @@ public void testCommitStatus() throws Exception {
524524
state = lst.get(0);
525525
System.out.println(state);
526526
assertEquals("testing!",state.getDescription());
527-
assertEquals("http://kohsuke.org/",state.getTargetUrl());
527+
assertEquals("http://kohsuke.org/", state.getTargetUrl());
528528
}
529529

530530
@Test
@@ -650,6 +650,14 @@ public void testMemberPagenation() throws IOException {
650650
assertFalse(all.isEmpty());
651651
}
652652

653+
@Test
654+
public void testIssueSearch() throws IOException {
655+
PagedSearchIterable<GHIssue> r = gitHub.searchIssues().mentions("kohsuke").isOpen().list();
656+
for (GHIssue i : r) {
657+
System.out.println(i.getTitle());
658+
}
659+
}
660+
653661
private void kohsuke() {
654662
String login = getUser().getLogin();
655663
Assume.assumeTrue(login.equals("kohsuke") || login.equals("kohsuke2"));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.