Commit Graph

47 Commits

Author SHA1 Message Date
Marcin Grzejszczak
39bef2ce08 Fixed equals and hashcode 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
a328130418 WireMock done 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
7558fb183e Polish 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
148dc4effc Added documentation to the new features 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
6602f98be6 Added option to provide pluggable implementations for stubs 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
f148c5b8bf Using factories 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
d63a557a29 Added Contract converter + Yaml example 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
e3056a4978 #167 updated the regex and tests 2016-12-07 16:53:21 +01:00
Marcin Grzejszczak
c067774eee Fixed the invalid regex escape
fixes #162
2016-12-07 16:29:11 +01:00
Marcin Grzejszczak
a5642265cd Fixed the way contracts are packaged and tests are generated for plugins
the biggest problem was related with the scenario in which a jar with shared contracts is downloaded
with this change the output JAR structure is proper

fixes #156
2016-11-24 16:56:58 +01:00
Marcin Grzejszczak
c2a1efa9dc Plugins are generating tests for all contracts when using external contracts
When using contract plugins together with a shared repo with contracts we end up with creating contract tests for all the contracts. Stubs are created properly but tests generation ignores the path pattern.
With this change we fix the way tests are generated

fixes #155
2016-11-23 17:43:25 +01:00
Marcin Grzejszczak
b1175ff9bd Simplification of the dsl (#151)
with this change to DSL we're adding some helper methods and DSL simplifications 

- c(...) / p(...) - for consumer / producer
- for regex - e.g. $(anyUrl()) - insead of $(consumer(regex(url()))
- Added helper headers and media types
- Added helper http methods

fixes #149
2016-11-18 15:38:35 +01:00
Marcin Grzejszczak
df80cc8f1f Added execute support for text based responses
without this change it's impossible to execute any custom method to assert a response for a body that is just text
with this change you can do it

fixes #150
2016-11-17 13:15:25 +01:00
Marcin Grzejszczak
d683d3d6f0 Added regex support for text based response
without this change any assertion on a text based response wouldn't work
with this change we start doing regex checks

fixes #150
2016-11-17 12:55:48 +01:00
Marcin Grzejszczak
b3cf4077e2 Fixed the base class name
without this change for convention class names we haven't escaped illegal chars
with this change the illegal chars are escaped and no compilation issues occur

fixes #137
2016-11-08 16:14:20 +01:00
Mathias Düsterhöft
6f3c3f850b Enable amqp integration by property (#131)
Fixes #133
2016-11-06 22:34:05 +01:00
Mathias Düsterhöft
49520d4c3d Add support for spring-amqp annotated listener endpoints
without this change only explicit Spring AMQP support was present
with this change support for spring-amqp annotated listener endpoints was added

fixes #127
2016-10-31 14:23:56 +01:00
Mathias Düsterhöft
2b70b450b9 add spring-amqp/spring-rabbit support for message contracts (#106) 2016-10-20 12:43:31 +02:00
Andrew Fitzgerald
74ea3fd27d Allow MethodBodyBuilder to evaluate ExecutionProperty objects (#114) 2016-10-18 08:20:17 +02:00
Marcin Grzejszczak
7072284c95 Making Windows build pass (#109)
* had to ignore some tests for Windows due to absurd exceptions
* fixed escaping path for directory matching

fixes #98
2016-10-16 13:47:46 +02:00
Marcin Grzejszczak
fa152252b9 Fixing the tests for Windows 2016-10-10 13:47:05 +02:00
Marcin Grzejszczak
d3896f913b Changed ContractVerifierObjectMapper to a bean
without this change we couldn't alter the mapper

with this change you can customize the whole verifier objectmapper or the objectmapper that is on classpath

fixes #97
2016-10-07 14:59:49 +02:00
Marcin Grzejszczak
8e68dcedd4 Problem with auto-generated values from regex inside the respose body
added missing `$()` method for consumer and producer side only

fixes #94
2016-10-04 15:12:55 +02:00
Marcin Grzejszczak
b598518281 Added ignored to contracts
without this change the only way to ignore a contract was to provide it in the plugin's config

with this change you can also set it on the contract itself.

fixes #30
2016-09-26 14:32:01 +02:00
Marcin Grzejszczak
a557b89a86 Fixed missing test side value resolution
without this change when generating contract tests we were not iterating over a parsed json with test side values only. We had DslProperties that were ignored by multiple dispatch

with this change when generating tests we first convert the parsed json into its test side (those with `producer` method) and only then perform any logic

fixes #85
2016-09-26 13:21:06 +02:00
Marcin Grzejszczak
e8917940ec Added option of multiple test base classes
without this change the user was forced to use a single base class for all of the generated tests. It could become problematic after some time.

With this change we provide a range of options of providing different base classes for different contracts.

fixes #16
2016-09-23 15:52:14 +02:00
Marcin Grzejszczak
01f4ad76be Consumer Contracts (#83)
With this functionality you can have one centralized repository containing all contracts. This repo will have to produce a JAR containing all contracts. The layout of the repository can be arbitrary but some sensible defaults are assumed. The producer will be able to then download that JAR and produce tests and stubs from it.

fixes #38
2016-09-23 10:16:51 +02:00
Marcin Grzejszczak
93782cb049 Polish 2016-09-21 11:06:16 +02:00
Marcin Grzejszczak
7eefac9a15 Added missing conditional on class for Stream autoconfig 2016-09-20 09:25:24 +02:00
Marcin Grzejszczak
dbc7c57702 Changed the docs (#74)
* reorganized the entries (now the Contract details went to the very bottom)
* added FAQ section where versioning and dynamic props are better defined
* added in a couple of places links to Groovy JSON docs

fixes #69
2016-09-06 19:41:34 +02:00
Marcin Grzejszczak
30e149694e Moved message collector to a separate config 2016-09-02 17:41:20 +02:00
Marcin Grzejszczak
708a9e8b36 Fixed broken tests 2016-09-02 17:34:41 +02:00
Marcin Grzejszczak
49c5089b40 Added missing beans + Added auto creation of message channels 2016-09-02 17:06:18 +02:00
Marcin Grzejszczak
18b5cf8890 Added a check for missing bean 2016-09-02 16:06:15 +02:00
Marcin Grzejszczak
5c4bc1bda1 Added missing version 2016-09-02 11:24:08 +02:00
Marcin Grzejszczak
8dde9f333b Removed XML entry
will readd it once it has been fixed

fixes #67
2016-08-30 11:06:04 +02:00
Marcin Grzejszczak
64d6d3ef6c Automatic stub registration (#64)
before this change the support for Stub Runner Boot with Service Discovery was pretty useless since Stub Runner stubbed service discovery. That makes a lot of sense in unit / integration tests but not when you want to do some version of end to end tests. 

With this change you can pass a property to enable automated registration of stubs in Service Discovery.

Technical changes:
* Added Zookeeper registration
* Added Eureka registration
* Added Consul registration
* Added checkstyle plugin - fixed part of exceptions
2016-08-26 16:09:16 +02:00
Marcin Grzejszczak
c7665db7d9 Fixed code style issues 2016-08-12 11:46:41 +02:00
Marcin Grzejszczak
3552684f93 Invalid array size check
there was a problem with the way property related to array size check was passed. Not only was the condition inverse, but also the properties weren't passed.

With this change those issues were fixed, we've added the missing maven plugin feature and ensured that the array check is the default option.

fixes #60
2016-08-11 14:33:30 +02:00
Marcin Grzejszczak
01cfa8dcf9 Fixed build 2016-08-09 14:28:57 +02:00
Marcin Grzejszczak
c1f6857f7a Updated docs
fixes #53
2016-07-26 10:49:37 +02:00
Marcin Grzejszczak
7496101b1d Fixed the generation of values for regexs 2016-07-21 14:35:59 +02:00
Marcin Grzejszczak
5ef7a7fee2 Changed client / server to consumer / producer 2016-07-21 12:08:38 +02:00
Marcin Grzejszczak
72e67d6397 Polish 2016-07-20 19:39:01 +02:00
Marcin Grzejszczak
19092baabd Updated docs 2016-07-20 18:58:38 +02:00
Dave Syer
675278eb4f Remove some references to deleted projects 2016-07-19 14:35:08 +01:00
Dave Syer
4137d964f8 Move verifier up to top level 2016-07-19 14:35:08 +01:00