Add spock-global-unroll

Change-Id: I0642bdf0e269f60c46d0b9c19b3d29af5a8c786b
This commit is contained in:
Piotr Fus 2018-01-30 10:58:18 +01:00
parent 79e7530390
commit 0b7d0b52bc
6 changed files with 18 additions and 20 deletions

View file

@ -42,7 +42,7 @@ class HttpMockServer {
HttpMockServer(int port = 9999, ConfigObject initialConfiguration = new ConfigObject(), int threads = 10) {
executor = Executors.newFixedThreadPool(threads)
httpServerWrapper = new HttpServerWrapper(port, executor, null)
httpServerWrapper = new HttpServerWrapper(port, executor)
initialConfiguration.values()?.each { ConfigObject co ->
addMock(co)

View file

@ -24,7 +24,7 @@ class HttpServerWrapper {
private List<ContextExecutor> executors = []
HttpServerWrapper(int port, Executor executor, Https https) {
HttpServerWrapper(int port, Executor executor, Https https = null) {
this.port = port
InetSocketAddress addr = new InetSocketAddress(Inet4Address.getByName("0.0.0.0"), port)
httpServer = buildServer(addr, https)