Commit Graph

189 Commits

Author SHA1 Message Date
Marcin Grzejszczak
55a0ae86c5 Fixed https 2019-03-22 11:41:20 +01:00
Marcin Grzejszczak
4747adf9bc Parametrized maven; fixes gh-813 2019-02-18 11:57:33 +01:00
Marcin Grzejszczak
ab49216445 I give up 2019-02-18 10:58:49 +01:00
Marcin Grzejszczak
6fcb61eca4 I give up 2019-02-18 10:56:02 +01:00
Marcin Grzejszczak
c004737816 Polish 2019-02-18 10:44:56 +01:00
Marcin Grzejszczak
d72aada46c Polish 2019-02-18 10:27:59 +01:00
Marcin Grzejszczak
b733a718a4 Restarting WireMock stubs when reusing servers running on random ports 2019-02-18 10:17:45 +01:00
Marcin Grzejszczak
d7f39c1a80 Polish 2019-02-18 09:29:03 +01:00
Marcin Grzejszczak
9ce1b0374d Polish 2019-02-18 09:20:24 +01:00
Marcin Grzejszczak
6383285265 Polish 2019-02-18 09:17:00 +01:00
boothen
11965323ae #883: Wiremock: Fix for Spring context always being set to Dirty. (#884)
* #883: Using boolean values in Wiremock.server so that it's possible to identify if dynamic ports have been configured.

* #883: Triage feedback. Added  @author. Updated license year. Changed test name.

* #883: Fixed portIsFixed logic. Added test to check expect port status to applicable tests. @DirtiesContext to test so that context is cleared down to avoid conflict in the next test.

* #883: Removed duplicate portIsFixed/portIsNotFixed unit tests.

* #883: Checkstyle fixes.
2019-02-17 17:22:00 +01:00
Marcin Grzejszczak
f4475f44b7 Merge branch '2.0.x' 2019-02-14 14:11:51 +01:00
Marcin Grzejszczak
f7ea8f0241 Request param not accepting empty values; fixes gh-886 2019-02-14 14:10:10 +01:00
Marcin Grzejszczak
8ce80e6e7f Applied checkstyle rules 2019-02-08 18:20:59 +01:00
Marcin Grzejszczak
55f648fc85 Migrated to non snapshot versions for classpath tests 2019-01-23 11:00:12 +01:00
Marcin Grzejszczak
d8f5986115 Removed snapshot versions 2019-01-22 20:31:10 +01:00
Marcin Grzejszczak
1eed5c606d Merge branch '2.0.x' 2019-01-20 20:33:57 +01:00
Marcin Grzejszczak
fb1e081dda Added a test and docs on how to add all stubs from the classpath; fixes gh-591 2019-01-20 20:33:49 +01:00
Marcin Grzejszczak
5d8015aa0f Merge branch '2.0.x' 2019-01-18 16:28:07 +01:00
Marcin Grzejszczak
03a4303a10 Not causing an exception when context is broken; fixes gh-833 2019-01-18 16:28:00 +01:00
Marcin Grzejszczak
4a127e7785 Removed unnecessary duplicated call to rest doc's document method; fixes gh-816 2019-01-15 17:36:25 +01:00
Marcin Grzejszczak
6de903368a Added support for additional configuration of HTTP Server stubs
without this change it's hard to add HTTPs support for the stubs ran by stub runner. It's close to impossible to alter the default configuration of HTTP server stubs at all (e.g. lower the logging level of WireMock stubs etc.)
    with this change we allow to pass a class as a property to stub runner either via annotation, JUnit rule / extension or just system properties. That way the configurer will be applied at runtime for WireMock stubs (implementors of custom HTTP server stubs will need to perform some additional work to allow this)

    fixes gh-742
2019-01-11 13:47:40 +01:00
Marcin Grzejszczak
6901fe03f5 BUmped wiremock to 2.20.0; fixes gh-925 2018-12-24 09:35:18 +01:00
Marcin Grzejszczak
6969d233b8 Removed httpclient setup 2018-12-18 14:08:42 +01:00
Marcin Grzejszczak
204c6a97f7 Merge branch '2.0.x' 2018-12-18 13:24:17 +01:00
Marcin Grzejszczak
7b2cce7513 Fixed issues with bound ports 2018-12-18 13:20:39 +01:00
Marcin Grzejszczak
f45f624d34 Made test less brittle 2018-12-17 13:49:06 +01:00
Marcin Grzejszczak
fa16ea945c Merge branch '2.0.x' 2018-12-17 10:46:21 +01:00
Marcin Grzejszczak
d23e0c61bf The DSL generated from RESTDocs for String response is wrong; fixes gh-775 2018-12-17 10:43:22 +01:00
Marcin Grzejszczak
1973c28550 Merge branch '2.0.x' 2018-12-16 14:08:23 +01:00
Marcin Grzejszczak
51f7ef6f67 web dependency is optional, StubRunner listener conditional
without this change we always include `spring-boot-starter-web` to Stub Runner. With this change the dependency is optional. Thanks to this reactive applications will be able to work fine with contract on the classpath.

without this change we always run Stub Runner test execution listener, even if the test class is not annotated. With this change we run the listener only, if the test class was annotated with `@AutoConfigureStubRunner`.

Also we add information about the `java.net.SocketException: Unexpected end of file from server` exception to the docs and how to override that issue.

Fixes gh-798, gh-809, gh-799
2018-12-16 13:44:00 +01:00
杨博 (Yang Bo)
3c3d3f7b19 Configure for WireMockServer instead of port (#812)
When port = 0, WireMock will assign different ports for admin server and mock server. As a result, the original implementation will send admin requests to mock server, which is wrong behavior.

If this PR got merged, WireMock will directly add stubs instead of sending admin requests, which is correct behavior and also improves performance.
2018-12-11 18:47:52 +00:00
Olga Maciaszek-Sharma
0785f405ed Return empty array if null body. Fixes gh-804 2018-11-28 13:51:44 +01:00
Marcin Grzejszczak
67c2be5e67 Merge branch '2.0.x' 2018-11-14 14:54:39 +01:00
Marcin Grzejszczak
07e662a4ad Making tests less brittle 2018-11-14 14:54:27 +01:00
Marcin Grzejszczak
9bb4bc10ab Merge branch '2.0.x' 2018-11-14 12:22:25 +01:00
Marcin Grzejszczak
d82baee855 Added url matching to MockRestServiceServer; fixes gh-740 2018-11-14 12:21:36 +01:00
Marcin Grzejszczak
ae0cf8365c Making immutable mutable 2018-10-12 10:08:01 +02:00
Marcin Grzejszczak
8da2e4ee57 Checkstyle and jdk11 fix with spock 2018-10-05 10:44:28 +02:00
Marcin Grzejszczak
132c780de6 Ensures that the bean name is not overriding any other bean name 2018-09-12 09:28:32 +02:00
Marcin Grzejszczak
452c83bdf1 Merge branch '2.0.x' 2018-08-29 16:03:57 +02:00
Marcin Grzejszczak
cfc9d6fbb5 Added NPE guard; fixes gh-717 2018-08-29 15:51:27 +02:00
Marcin Grzejszczak
096790e04d Upgraded to Greenwhich 2018-08-29 14:04:28 +02:00
Marcin Grzejszczak
58f3f429eb Upgraded to Greenwhich 2018-08-27 18:33:10 +02:00
Marcin Grzejszczak
6f1d88c9b4 Merge branch '1.2.x' into 2.0.x 2018-08-10 14:36:00 +02:00
Marcin Grzejszczak
d2f0f6322e Added comments related to the workaround with Java HTTP client; thanks to @tomakehurst 2018-08-10 14:35:52 +02:00
Marcin Grzejszczak
cb31ca7bf1 Removed DirtiesContext 2018-08-08 21:58:04 +02:00
Marcin Grzejszczak
ac2b89d68c Fixed checkstyle issues 2018-08-08 18:10:30 +02:00
Marcin Grzejszczak
8bb61176ea Removed dirties context on any tests 2018-08-08 18:00:58 +02:00
Marcin Grzejszczak
c9228969de Closing and restarting WireMock stub after and before each test (#707)
fixes gh-665
2018-08-08 17:52:28 +02:00