Add additional logs on server and additional info in list mock operation

This commit is contained in:
Dominik Przybysz 2015-03-12 11:10:09 +01:00
parent bc3c3d1dc0
commit 332383ff15
6 changed files with 47 additions and 18 deletions

View file

@ -107,7 +107,7 @@ class RemoteMockServer {
CloseableHttpResponse response = client.execute(get)
GPathResult xml = Util.extractXmlResponse(response)
if (xml.name() == 'mocks') {
return xml.mock.collect { new RegisteredMock(it.name.text(), it.path.text(), it.port.text() as int) }
return xml.mock.collect { new RegisteredMock(it.name.text(), it.path.text(), it.port.text() as int, it.predicate.text(), it.response.text(), it.responseHeaders.text()) }
}
return []
}