public class WireMockHttpServerStub extends Object implements HttpServerStub
| Constructor and Description |
|---|
WireMockHttpServerStub() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,wiremock.com.github.jknack.handlebars.Helper> |
helpers()
Deprecated.
- please use the
WireMockExtensions mechanism and pass
the helpers in your implementation |
boolean |
isAccepted(File file)
Returns
true if the file is a valid stub mapping |
boolean |
isRunning()
Returns
true if the server is running |
int |
port()
Port on which the server is running
|
String |
registeredMappings()
Returns a collection of registered mappings
|
HttpServerStub |
registerMappings(Collection<File> stubFiles)
Registers the stub files in the HTTP server stub.
|
HttpServerStub |
start()
Starts the server on a random port.
|
HttpServerStub |
start(int port)
Starts the server on a given port.
|
HttpServerStub |
stop()
Stops the server.
|
@Deprecated protected Map<String,wiremock.com.github.jknack.handlebars.Helper> helpers()
WireMockExtensions mechanism and pass
the helpers in your implementationpublic int port()
HttpServerStubport in interface HttpServerStubpublic boolean isRunning()
HttpServerStubtrue if the server is runningisRunning in interface HttpServerStubpublic HttpServerStub start()
HttpServerStubstart in interface HttpServerStubpublic HttpServerStub start(int port)
HttpServerStubstart in interface HttpServerStubpublic HttpServerStub stop()
HttpServerStubstop in interface HttpServerStubpublic HttpServerStub registerMappings(Collection<File> stubFiles)
HttpServerStubregisterMappings in interface HttpServerStubpublic String registeredMappings()
HttpServerStubregisteredMappings in interface HttpServerStubpublic boolean isAccepted(File file)
HttpServerStubtrue if the file is a valid stub mappingisAccepted in interface HttpServerStubCopyright © 2016–2018 Spring. All rights reserved.