-
Methods Method Description net.jadler.Jadler.OngoingConfiguration.respondsWithDefaultContentType(String) useJadler.OngoingConfiguration.withDefaultResponseContentType(java.lang.String)insteadDefines 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))net.jadler.Jadler.OngoingConfiguration.respondsWithDefaultEncoding(Charset) useJadler.OngoingConfiguration.withDefaultResponseEncoding(java.nio.charset.Charset)insteadDefines 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))net.jadler.Jadler.OngoingConfiguration.respondsWithDefaultHeader(String, String) useJadler.OngoingConfiguration.withDefaultResponseHeader(java.lang.String, java.lang.String)insteadDefines a response header that will be sent in every http stub response. Can be called repeatedly to define more headers.
net.jadler.Jadler.OngoingConfiguration.respondsWithDefaultStatus(int) useJadler.OngoingConfiguration.withDefaultResponseStatus(int)insteadSets the default http response status. This value will be used for all stub responses with no specific http status defined. (see
ResponseStubbing.withStatus(int))net.jadler.Jadler.OngoingConfiguration.skipsRequestsRecording() useJadler.OngoingConfiguration.withRequestsRecordingDisabled()insteadDisables 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
JadlerMocker.setRecordRequests(boolean).Please note this method should be used very rarely and definitely should not be treated as a default.
net.jadler.Jadler.OngoingConfiguration.that() added just for backward compatibility reasons, does nothing but returning this ongoing configuration instance. Use the configuration methods of this instance directly instead.net.jadler.JadlerMocker.numberOfRequestsMatching(Collection<Matcher<? super Request>>) net.jadler.RequestManager.numberOfRequestsMatching(Collection<Matcher<? super Request>>) this (rather internal) method has been deprecated. Please useRequestManager.evaluateVerification(java.util.Collection, org.hamcrest.Matcher)instead