Skip to content
Permalink
Browse files
ANY23-427 http://semanticweb.org/ down causes tests to fail
  • Loading branch information
lewismc committed Mar 5, 2019
1 parent eed6d67 commit 9fdeb1739ea694238b1a84a396464fe980a95ded
Showing 1 changed file with 3 additions and 7 deletions.
@@ -222,28 +222,24 @@ public void testPOSTonlyFormat() throws Exception {
}

/**
* This test has been disabled in order to avoid external resources
* dependencies
*
* @throws Exception if there is an error asserting test data
*/
@Test
public void testGETwithURLEncoding() throws Exception {
content = null;
HttpTester.Response response = doGetRequest("/best/http://semanticweb.org/wiki/Knud_M%C3%B6ller");
HttpTester.Response response = doGetRequest("/best/http://dbpedia.org/resource/Knud_M%C3%B6ller");
Assert.assertEquals(200, response.getStatus());
}

/**
* This test has been disabled in order to avoid external resources
* dependencies
*
* @throws Exception if there is an error asserting test data
*/
@Test
public void testGETwithURLEncodingWithQuery() throws Exception {
content = null;
HttpTester.Response response = doGetRequest("/best/http://semanticweb.org/wiki/Knud_M%C3%B6ller?appo=xxx");
HttpTester.Response response = doGetRequest("/best/http://commons.wikimedia.org/wiki/Special:FilePath/Knud_M%C3%B6ller_vuonna_1965.jpg?width=300");
Assert.assertEquals(200, response.getStatus());
}

@@ -256,7 +252,7 @@ public void testGETwithURLEncodingWithQuery() throws Exception {
@Test
public void testGETwithURLEncodingWithFragment() throws Exception {
content = null;
HttpTester.Response response = doGetRequest("/best/http://semanticweb.org/wiki/Knud_M%C3%B6ller#abcde");
HttpTester.Response response = doGetRequest("/best/http://dbpedia.org/resource/Knud_M%C3%B6ller#title");
Assert.assertEquals(200, response.getStatus());
}

0 comments on commit 9fdeb17

Please sign in to comment.