Package | Description |
---|---|
net.jadler |
Modifier and Type | Method and Description |
---|---|
static Jadler.OngoingConfiguration |
Jadler.initJadler()
Initializes Jadler and starts a default stub server
JettyStubHttpServer
serving the http protocol listening on any free port. |
static Jadler.OngoingConfiguration |
Jadler.initJadlerListeningOn(int port)
Initializes Jadler and starts a default stub server
JettyStubHttpServer
serving the http protocol listening on the given port. |
static Jadler.OngoingConfiguration |
Jadler.initJadlerUsing(StubHttpServer server)
Initializes Jadler and starts the given
StubHttpServer . |
Jadler.OngoingConfiguration |
Jadler.OngoingConfiguration.respondsWithDefaultContentType(String defaultContentType)
Deprecated.
use
withDefaultResponseContentType(java.lang.String) instead
Defines a default content type of every stub http response. This value will be used for all stub responses
with no specific content type defined. (see ResponseStubbing.withContentType(java.lang.String) ) |
Jadler.OngoingConfiguration |
Jadler.OngoingConfiguration.respondsWithDefaultEncoding(Charset defaultEncoding)
Deprecated.
use
withDefaultResponseEncoding(java.nio.charset.Charset) instead
Defines a default encoding of every stub http response. This value will be used for all stub responses
with no specific encoding defined. (see ResponseStubbing.withEncoding(java.nio.charset.Charset) ) |
Jadler.OngoingConfiguration |
Jadler.OngoingConfiguration.respondsWithDefaultHeader(String name,
String value)
Deprecated.
use
withDefaultResponseHeader(java.lang.String, java.lang.String) instead
Defines a response header that will be sent in every http stub response.
Can be called repeatedly to define more headers. |
Jadler.OngoingConfiguration |
Jadler.OngoingConfiguration.respondsWithDefaultStatus(int defaultStatus)
Deprecated.
use
withDefaultResponseStatus(int) instead
Sets the default http response status. This value will be used for all stub responses with no
specific http status defined. (see ResponseStubbing.withStatus(int) ) |
Jadler.OngoingConfiguration |
Jadler.OngoingConfiguration.skipsRequestsRecording()
Deprecated.
use
withRequestsRecordingDisabled() instead
Disables incoming http requests recording. Jadler mocking (verification) capabilities are implemented by storing all incoming requests (including their
bodies). This could cause troubles in some very specific testing scenarios, for further explanation jump
straight to Please note this method should be used very rarely and definitely should not be treated as a default. |
Jadler.OngoingConfiguration |
Jadler.OngoingConfiguration.that()
Deprecated.
added just for backward compatibility reasons, does nothing but returning this ongoing
configuration instance. Use the configuration methods of this instance directly instead.
|
Jadler.OngoingConfiguration |
Jadler.OngoingConfiguration.withDefaultResponseContentType(String defaultContentType)
Defines a default content type of every stub http response.
|
Jadler.OngoingConfiguration |
Jadler.OngoingConfiguration.withDefaultResponseEncoding(Charset defaultEncoding)
Defines a default encoding of every stub http response.
|
Jadler.OngoingConfiguration |
Jadler.OngoingConfiguration.withDefaultResponseHeader(String name,
String value)
Defines a response header that will be sent in every http stub response.
|
Jadler.OngoingConfiguration |
Jadler.OngoingConfiguration.withDefaultResponseStatus(int defaultStatus)
Sets the default http response status.
|
Jadler.OngoingConfiguration |
Jadler.OngoingConfiguration.withRequestsRecordingDisabled()
Disables incoming http requests recording.
|
Copyright © 2016. All Rights Reserved.