Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make purpose of lone test clearer

  • Loading branch information...
commit ee4c7cacef457118aa1866711b562305da72f27c 1 parent 4f0efc4
@peterlynch peterlynch authored
View
15 src/test/java/jenkins/plugins/hipchat/StandardHipChatServiceTest.java
@@ -1,19 +1,18 @@
package jenkins.plugins.hipchat;
+import jenkins.plugins.hipchat.StandardHipChatService;
import org.junit.Before;
import org.junit.Test;
public class StandardHipChatServiceTest {
- private StandardHipChatService service;
-
- @Before
- public void setUp() throws Exception {
- service = new StandardHipChatService("token", "room", "from");
- service.setHost("localhost");
- }
+ /**
+ * Publish should generally not rethrow exceptions, or it will cause a build job to fail at end.
+ */
@Test
- public void publishShouldNotRethrowExceptions() {
+ public void publishWithBadHostShouldNotRethrowExceptions() {
+ StandardHipChatService service = new StandardHipChatService("token", "room", "from");
+ service.setHost("hostvaluethatwillcausepublishtofail");
service.publish("message");
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.