aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--tests/test-extensions-tests/net/sourceforge/jnlp/TinyHttpdImplTest.java8
-rw-r--r--tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java2
3 files changed, 6 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index af1c82e..03eff0c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-08-13 Andrew Azores <[email protected]>
+ * tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java: no longer
+ sends HTTP 400 BAD REQUEST messages
+ * test/test-extensions-tests/net/sourceforge/jnlp/TinyHttpdImplTest.java:
+ removed "bad request" test
+
2013-08-12 Andrew Azores <[email protected]>
* tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java: refactored
* tests/test-extensions/net/sourceforge/jnlp/ServerLauncher.java:
diff --git a/tests/test-extensions-tests/net/sourceforge/jnlp/TinyHttpdImplTest.java b/tests/test-extensions-tests/net/sourceforge/jnlp/TinyHttpdImplTest.java
index e7567f5..6a14ebc 100644
--- a/tests/test-extensions-tests/net/sourceforge/jnlp/TinyHttpdImplTest.java
+++ b/tests/test-extensions-tests/net/sourceforge/jnlp/TinyHttpdImplTest.java
@@ -17,7 +17,6 @@ import org.junit.Test;
public class TinyHttpdImplTest {
private static final String HTTP_OK = "HTTP/1.0 200 OK";
- private static final String HTTP_400 = "HTTP/1.0 400 Bad Request";
private static final String HTTP_404 = "HTTP/1.0 404 Not Found";
private static final String HTTP_501 = "HTTP/1.0 501 Not Implemented";
private static final String CONTENT_JNLP = "Content-Type: application/x-java-jnlp-file";
@@ -185,13 +184,6 @@ public class TinyHttpdImplTest {
}
@Test
- public void BadMethodTest() throws Exception {
- String head = getTinyHttpdImplResponse("BADMETHOD", "/simpletest1.jnlp");
-
- Assert.assertTrue("Status should have been " + HTTP_400, head.trim().equals(HTTP_400));
- }
-
- @Test
public void NotSupportingHeadRequest() throws Exception {
boolean headRequestSupport = mServer.isSupportingHeadRequest();
mServer.setSupportingHeadRequest(false);
diff --git a/tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java b/tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java
index 375019e..301dd3f 100644
--- a/tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java
+++ b/tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java
@@ -60,7 +60,6 @@ import java.util.StringTokenizer;
public class TinyHttpdImpl extends Thread {
private static final String CRLF = "\r\n";
- private static final String HTTP_BAD_REQUEST = "HTTP/1.0 " + HttpURLConnection.HTTP_BAD_REQUEST + " Bad Request" + CRLF;
private static final String HTTP_NOT_IMPLEMENTED = "HTTP/1.0 " + HttpURLConnection.HTTP_NOT_IMPLEMENTED + " Not Implemented" + CRLF;
private static final String HTTP_NOT_FOUND = "HTTP/1.0 " + HttpURLConnection.HTTP_NOT_FOUND + " Not Found" + CRLF;
private static final String HTTP_OK = "HTTP/1.0 " + HttpURLConnection.HTTP_OK + " OK" + CRLF;
@@ -125,7 +124,6 @@ public class TinyHttpdImpl extends Thread {
if (!isHeadRequest && !isGetRequest) {
ServerAccess.logOutputReprint("Received unknown request type " + request);
- writer.writeBytes(HTTP_BAD_REQUEST);
continue;
}