package com.bugsnag.android;

import android.test.AndroidTestCase;

import com.bugsnag.android.Configuration;
import com.bugsnag.android.Client;

public class ConfigurationTest extends AndroidTestCase {
    private Configuration config;

    @Override
    protected void setUp() {
        config = new Configuration("api-key-here");
    }

    public void testDefaultEndpoints() {
        assertEquals(config.getNotifyEndpoint(), "http://notify.bugsnag.com");
        assertEquals(config.getMetricsEndpoint(), "http://notify.bugsnag.com/metrics");
    }
}

@@ -200,43 +200,8 @@
 e %7B%0A
-    private Configuration config;%0A%0A
     
@@ -239,24 +239,80 @@
 tUp() %7B%0A
+%0A
     
+%7D%0A%0A
     
+public void testEndpoints() %7B%0A        Configuration 
 config =
@@ -342,60 +342,41 @@
 -key
--here
 %22);%0A
+%0A
     
-%7D%0A%0A
     
-public void test
+// 
 Default
-E
+ e
 ndpoints
 () %7B
@@ -363,36 +363,32 @@
 efault endpoints
-() %7B
 %0A        assertE
@@ -538,16 +538,1500 @@
 trics%22);
+%0A%0A        // Setting an endpoint%0A        config.endpoint = %22http://localhost:8000%22;%0A        assertEquals(config.getNotifyEndpoint(), %22http://localhost:8000%22);%0A        assertEquals(config.getMetricsEndpoint(), %22http://localhost:8000/metrics%22);%0A    %7D%0A%0A    public void testShouldNotify() %7B%0A        Configuration config = new Configuration(%22api-key%22);%0A%0A        // Should notify if notifyReleaseStages is null%0A        assertTrue(config.shouldNotify());%0A%0A        // Shouldn't notify if notifyReleaseStages is set and releaseStage is null%0A        config.notifyReleaseStages = new String%5B%5D %7B%22example%22%7D;%0A        assertFalse(config.shouldNotify());%0A%0A        // Shouldn't notify if releaseStage not in notifyReleaseStages%0A        config.notifyReleaseStages = new String%5B%5D %7B%22production%22%7D;%0A        config.releaseStage = %22not-production%22;%0A        assertFalse(config.shouldNotify());%0A%0A        // Should notify if releaseStage in notifyReleaseStages%0A        config.notifyReleaseStages = new String%5B%5D %7B%22production%22%7D;%0A        config.releaseStage = %22production%22;%0A        assertTrue(config.shouldNotify());%0A    %7D%0A%0A    public void testShouldIgnore() %7B%0A        Configuration config = new Configuration(%22api-key%22);%0A%0A        // Should not ignore by default%0A        assertFalse(config.shouldIgnore(%22java.io.IOException%22));%0A%0A        // Should ignore when added to ignoreClasses%0A        config.ignoreClasses = new String%5B%5D %7B%22java.io.IOException%22%7D;%0A        assertTrue(config.shouldIgnore(%22java.io.IOException%22));
 %0A    %7D%0A%7D

Add some more tests