Commit 4272709f by Ricki Hirner

Tests

parent b9e58df7
Pipeline #11615750 passed with stage
in 1 minute 47 seconds
......@@ -15,7 +15,7 @@ import java.io.*
open class HttpException: Exception, Serializable {
// don't dump more than 10 kB
// don't dump more than 20 kB
private val MAX_DUMP_SIZE = 20*1024
val status: Int
......
......@@ -41,8 +41,8 @@ public class HttpExceptionTest {
HttpException e = new HttpException(response);
assertTrue(e.getMessage().contains("500"));
assertTrue(e.getMessage().contains(responseMessage));
assertTrue(e.getRequest().contains("REQUEST[LF]\nBODY[05]"));
assertTrue(e.getResponse().contains("[99]SERVER[CR][LF]\nRESPONSE"));
assertTrue(e.getRequest().contains("REQUEST\nBODY[05]"));
assertTrue(e.getResponse().contains("[99]SERVER\nRESPONSE"));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment