Skip to content

Commit b23ee4a

Browse files
committed
add test
1 parent 50a13c0 commit b23ee4a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/java/org/kohsuke/github/GitHubTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ public void getRepository() throws IOException {
3838
} catch (IllegalArgumentException e) {
3939
assertThat(e.getMessage(), equalTo("Repository name must be in format owner/repo"));
4040
}
41+
42+
try {
43+
gitHub.getRepository("hub4j/github/api");
44+
} catch (IllegalArgumentException e) {
45+
assertThat(e.getMessage(), equalTo("Repository name must be in format owner/repo"));
46+
}
4147
}
4248

4349
@Test

0 commit comments

Comments
 (0)