We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ed16ea commit e437bfeCopy full SHA for e437bfe
1 file changed
src/test/java/in/ashwanthkumar/slack/webhook/SlackTest.java
@@ -34,4 +34,14 @@ public void shouldSetUserWithAtTheRateOfPrefix() throws IOException {
34
assertThat(channelCaptor.getValue(), is("@slackbot"));
35
}
36
37
+ @Test(expected = IllegalArgumentException.class)
38
+ public void shouldThrowIllegaArgumentExceptionWhenWebHookUrlIsNotGiven() {
39
+ new Slack(null);
40
+ }
41
+
42
43
+ public void shouldThrowIllegalArgumentExceptionWhenUrlIsNotInSlacWebHookFormat() {
44
+ new Slack("http://www.foo.com/webhooks");
45
46
47
0 commit comments