Refactor tests
This commit is contained in:
parent
5db690c434
commit
dfc0332d5a
8 changed files with 233 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue