aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/java/fi/iki/elonen/HttpGetRequestTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/test/java/fi/iki/elonen/HttpGetRequestTest.java')
-rw-r--r--core/src/test/java/fi/iki/elonen/HttpGetRequestTest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/test/java/fi/iki/elonen/HttpGetRequestTest.java b/core/src/test/java/fi/iki/elonen/HttpGetRequestTest.java
index de1285f..e1a6b8b 100644
--- a/core/src/test/java/fi/iki/elonen/HttpGetRequestTest.java
+++ b/core/src/test/java/fi/iki/elonen/HttpGetRequestTest.java
@@ -168,8 +168,7 @@ public class HttpGetRequestTest extends HttpServerTest {
@Test
public void testOutputOfServeSentBackToClient() throws Exception {
String responseBody = "Success!";
- this.testServer.response = new NanoHTTPD(0) {
- }.newFixedLengthResponse(responseBody);
+ this.testServer.response = NanoHTTPD.newFixedLengthResponse(responseBody);
ByteArrayOutputStream outputStream = invokeServer("GET " + HttpServerTest.URI + " HTTP/1.1");
String[] expected = {