Sync docs from master to gh-pages

This commit is contained in:
buildmaster
2019-09-04 15:53:02 +00:00
parent 6fe0ceaacb
commit 4b9407285c
40 changed files with 43 additions and 41 deletions

View File

@@ -942,12 +942,14 @@ HTTP Stub server implementation, which might resemble the following example:</p>
import com.github.dreamhead.moco.bootstrap.arg.HttpArgs
import com.github.dreamhead.moco.runner.JsonRunner
import com.github.dreamhead.moco.runner.RunnerSetting
import groovy.transform.CompileStatic
import groovy.util.logging.Commons
import org.springframework.cloud.contract.stubrunner.HttpServerStub
import org.springframework.util.SocketUtils
@Commons
@CompileStatic
class MocoHttpServerStub implements HttpServerStub {
private boolean started
@@ -993,7 +995,7 @@ class MocoHttpServerStub implements HttpServerStub {
.collect {
log.info("Trying to parse [${it.name}]")
try {
return RunnerSetting.aRunnerSetting().withStream(it.newInputStream()).
return RunnerSetting.aRunnerSetting().addStream(it.newInputStream()).
build()
}
catch (Exception e) {