Skip to content

Commit b33bf02

Browse files
authored
Update to ensure expected exception is thrown
1 parent b23ee4a commit b33bf02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ public void getRepository() throws IOException {
3535

3636
try {
3737
gitHub.getRepository("hub4j_github-api");
38+
fail();
3839
} catch (IllegalArgumentException e) {
3940
assertThat(e.getMessage(), equalTo("Repository name must be in format owner/repo"));
4041
}
4142

4243
try {
4344
gitHub.getRepository("hub4j/github/api");
45+
fail();
4446
} catch (IllegalArgumentException e) {
4547
assertThat(e.getMessage(), equalTo("Repository name must be in format owner/repo"));
4648
}

0 commit comments

Comments
 (0)