Add support for each http method

This commit is contained in:
Dominik Adam Przybysz 2014-12-10 22:07:26 +01:00
parent b3e3dfb3f3
commit 1be072f440
6 changed files with 192 additions and 24 deletions

View file

@ -57,6 +57,10 @@ class HttpMockServer {
if(statusCode){
mock.statusCode = Integer.valueOf(statusCode)
}
String method = request.method
if(method){
mock.method = method
}
HttpServerWraper child = childServers.find { it.port == mockPort }
if (!child) {
child = new HttpServerWraper(mockPort)