Sync docs from master to gh-pages
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user