package com.detectlanguage;

import com.detectlanguage.errors.APIError;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class ServerErrorTest extends BaseTest {
    @Before
    public void setInvalidHost() {
        DetectLanguage.apiHost = "www.detectlanguage.com";
    }

    @After
    public void resetHost() {
        DetectLanguage.apiHost = "ws.detectlanguage.com";
    }

    @Test(expected = APIError.class)
    public void testSimpleDetect() throws APIError {
        DetectLanguage.simpleDetect("Hello world");
    }
}

@@ -136,16 +136,41 @@
 it.Test;
+%0Aimport org.junit.Ignore;
 %0A%0Aimport
@@ -472,24 +472,36 @@
 om%22;%0A    %7D%0A%0A
+    @Ignore%0A
     @Test(ex

Disable server error test