- when a requests verification fails the exact reason (a list of matching/clashing predicates for each request received so far) is logged on the INFO level
- the Jadler facade and the jUnit rule now provide the same defaults configuration options (response status, content type, encoding and headers defaults and the requests recording settings)
- a reset method added to the
Jadler
facade - bugfix: in Jadler
1.2.0
two completely identical received requests are counted as one during a verification - the version of
commons-collections
raised to3.2.2
due to a security vulnerability
- experimental implementation of a stub server using com.sun.net.httpserver added as a new Jadler module
jadler-jdk
- the Jetty (default) stub server implementation now sends the Date header in every response as requested in the RFC 2616
- a bug preventing usage of the net.jadler.Jadler facade in conjunction with a jUnit test with a defined timeout value fixed.
- requests recording (for verification purpose) can now be turned off via a new configuration option net.jadler.Jadler.OngoingConfiguration#skipsRequestsRecording
- Jadler can be built in JDK8 using Maven (proper doclint settings added for the javadoc plugin)
- jadler-junit artifact added, contains specific support for jUnit testing
- net.jadler.junit.rule.JadlerRule jUnit rule added for easy Jadler lifecycle management
- stub http responses can now be defined dynamically using the net.jadler.stubbing.Responder interface via the new net.jadler.stubbing.RequestStubbing#respondUsing(Responder) method
- a reset method added for the net.jadler.JadlerMocker class
- first stable version
- http mocking (verification) implemented: [net.jadler.Jadler#verifyThatRequest()] (https://github.com/jadler-mocking/jadler/blob/6b5338c8dc6ad64dce71aa4c8e73a424bfd869f6/jadler-core/src/main/java/net/jadler/Jadler.java#L533)
- methods for matching a request by its path renamed from
havingURI
(havingURIEqualTo
) to more accuratehavingPath
(havingPathEqualTo
): [net.jadler.RequestMatching#havingPathEqualTo(String)] (https://github.com/jadler-mocking/jadler/blob/6b5338c8dc6ad64dce71aa4c8e73a424bfd869f6/jadler-core/src/main/java/net/jadler/RequestMatching.java#L80) - the method for setting a stub response delay renamed from
withTimeout
to more accuratewithDelay
: [net.jadler.stubbing.ResponseStubbing#withDelay(long, TimeUnit)] (https://github.com/jadler-mocking/jadler/blob/6b5338c8dc6ad64dce71aa4c8e73a424bfd869f6/jadler-core/src/main/java/net/jadler/stubbing/ResponseStubbing.java#L122) - a
JadlerMocker
instance can now be disposed using aclose
method instead of astop
method. Once Jadler is switched to Java 7AutoCloseable
will be retrofitted easily: net.jadler.JadlerMocker#close() - a custom request abstraction introduced and used across the whole library: net.jadler.Request
- first public version
- http stubbing implemented