Skip to content
Browse files

Added a test for the added RuntimeException when Raven is not configured

  • Loading branch information...
1 parent 7c76f06 commit bf3a6099abda47e54dc6d932d2cb50c41c0dd19a @dcramer dcramer committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/test/java/net/kencochrane/sentry/SentryClientTest.java
View
7 src/test/java/net/kencochrane/sentry/SentryClientTest.java
@@ -7,11 +7,16 @@
import static org.junit.Assert.assertEquals;
public class SentryClientTest {
+ @Test(expected=RuntimeException.class)
+ public void testMissingDSN() {
+ RavenClient client = new RavenClient();
+ }
+
@Test
public void testConfigureFromDSN() {
RavenClient client = new RavenClient("http://public:secret@example.com/path/1");
assertEquals(client.getSentryDSN(), "http://public:secret@example.com/path/1");
- }
+ }
@Test
public void testConfigureFromEnvironment() {

0 comments on commit bf3a609

Please sign in to comment.
Something went wrong with that request. Please try again.