Refactor tests

This commit is contained in:
Dominik Adam Przybysz 2014-12-09 23:05:50 +01:00
parent 5db690c434
commit dfc0332d5a
8 changed files with 233 additions and 2 deletions

View file

@ -28,7 +28,7 @@ class HttpServerWraper {
void addMock(String path, Mock mock) {
ContextExecutor executor = executors.find { it.path == path }
if (executor) {
executor.mocks << mock
executor.addMock(mock)
} else {
executors << new ContextExecutor(this, path, mock)
}