Some changes in performance tests

Change-Id: Ieeb2ec1bc3c771cfb0e511b400ab4e6b7666b9c0
This commit is contained in:
Dominik Adam Przybysz 2015-08-29 15:44:16 +02:00
parent 82434f46a3
commit ed217704f4
2 changed files with 10 additions and 9 deletions

View file

@ -15,12 +15,12 @@ class ContextExecutor {
ContextExecutor(HttpServerWraper httpServerWraper, Mock initialMock) {
this.httpServerWraper = httpServerWraper
this.path = '/' + initialMock.path
this.path = "/${initialMock.path}"
this.mocks = new CopyOnWriteArrayList<>([initialMock])
httpServerWraper.createContext(path) {
HttpExchange ex ->
MockRequest request = new MockRequest(ex.requestBody.text, ex.requestHeaders, ex.requestURI)
log.info("Mock received input")
log.info('Mock received input')
log.debug("Request: ${request.text}")
for (Mock mock : mocks) {
try {