Commit Graph

1573 Commits

Author SHA1 Message Date
Marcin Grzejszczak
4dc8ea4b9b -x test disables test generation
fixes #306
2017-05-30 12:37:44 +02:00
Marcin Grzejszczak
d5e933f169 Fixed tests 2017-05-26 22:27:46 +02:00
Marcin Grzejszczak
abcb82fad5 Fixed the wrong UUID regex
it allowed more letters than it should

fixes #302
2017-05-26 22:18:06 +02:00
Marcin Grzejszczak
464e886bb8 Added versions 2017-05-26 22:03:29 +02:00
Marcin Grzejszczak
5a82609e41 Added docs for byCommand and execute
without this there's no knowledge of what type should the method in byCommand and execute

fixes #299
2017-05-26 21:30:34 +02:00
Marcin Grzejszczak
05ca8f909b Added messagingContentType
without this change you can by mistake use the http headers in a messaging headers which will fail to work
with this change we're adding the messagingContentType() method that allows to properly set the content type

fixes #296
2017-05-26 20:43:44 +02:00
Marcin Grzejszczak
f599a8d745 Updated versions 2017-05-26 20:34:29 +02:00
Marcin Grzejszczak
9ffd9d8f6a Added stream doc updates 2017-05-26 19:37:41 +02:00
Marcin Grzejszczak
459448cb27 Asserting on the payload before converting it
without this change an NPE is thrown instead of a meaningful message

fixes #307
2017-05-26 18:45:53 +02:00
Marcin Grzejszczak
76de9cec36 Bumped versions after release 2017-05-26 14:57:34 +02:00
Marcin Grzejszczak
3c8b8ac81d Added workshops to the docs 2017-05-26 14:51:32 +02:00
Marcin Grzejszczak
a4d451484b Hacking activemq 2017-05-23 00:10:15 +02:00
Marcin Grzejszczak
e0ea1b27f0 Bumping versions to 1.1.2.BUILD-SNAPSHOT after release 2017-05-22 23:57:24 +02:00
Marcin Grzejszczak
82f68347fa Going back to snapshots 2017-05-22 23:57:23 +02:00
Marcin Grzejszczak
7a10b3bf34 Update SNAPSHOT to 1.1.1.RELEASE 2017-05-22 23:51:18 +02:00
Marcin Grzejszczak
f84f415d04 Fixing camel 2017-05-22 23:37:43 +02:00
Dave Syer
2f01b89345 Update Spring Boot versions in messaging tests 2017-05-15 11:41:09 +01:00
Marcin Grzejszczak
c7f5accae4 Merge branch '1.0.x' 2017-05-11 11:38:06 +02:00
Marcin Grzejszczak
4ddae01bf9 Calling toString on getting messaging headers
With contract like this

```
	// output message of the contract
	outputMessage {
		// destination to which the output message will be sent
		sentTo 'verifications'
		// the body of the output message
		body(
			eligible: true
		)
		headers {
			header("contentType", applicationJsonUtf8())
		}
	}
```

the generated test produces

```
ContractVerifierMessage response = contractVerifierMessaging.receive("verifications");
assertThat(response.getHeader("contentType")).isEqualTo("application/json;charset=UTF-8");
```

The headers in the response is a MimeType not a String so the equality check fails.

fixes #297
2017-05-11 11:37:50 +02:00
Marcin Grzejszczak
205bced50c Polish 2017-05-10 10:35:18 +02:00
Marcin Grzejszczak
e459763e7c Polish 2017-05-10 10:33:36 +02:00
Marcin Grzejszczak
6853faa648 Polish 2017-05-10 10:31:52 +02:00
Tomasz Kopczynski
3d23964dca Remove unnecessary host entry from Spring REST Docs contract generation 2017-05-08 19:21:12 +02:00
Marcin Grzejszczak
ad1c7cd95c Merge branch '1.0.x' 2017-05-05 12:36:21 +02:00
Marcin Grzejszczak
4c4a18ed22 Bumped versions after release 2017-05-05 12:31:03 +02:00
Marcin Grzejszczak
e9306448f9 Going back to snapshots 2017-05-05 12:23:41 +02:00
Marcin Grzejszczak
bd67bb2f26 Update SNAPSHOT to 1.0.5.RELEASE 2017-05-05 12:12:38 +02:00
Marcin Grzejszczak
ec65d1b69f Updated docs 2017-05-05 11:42:59 +02:00
Marcin Grzejszczak
f435201a90 Merge branch '1.0.x' 2017-05-05 11:42:22 +02:00
Tomasz Kopczynski
1851aaf2b0 Additional linking between sections in REST Docs integration documentation (#291) 2017-05-05 11:42:07 +02:00
Marcin Grzejszczak
15ef2cab35 Merge branch '1.0.x' 2017-05-05 11:41:39 +02:00
Marcin Grzejszczak
1e16934fce Bumped jsonassert to 0.4.9
without this change we analyze empty sets of jsonpath results improperly

fixes #289
2017-05-05 11:25:19 +02:00
Marcin Grzejszczak
a85ece38f3 Updated docs 2017-05-04 16:49:50 +02:00
Marcin Grzejszczak
5d4da96544 Added missing code 2017-05-04 16:34:03 +02:00
Marcin Grzejszczak
1623b56876 Merge branch '1.0.x' 2017-05-04 16:31:42 +02:00
Marcin Grzejszczak
808684fd72 Introduction of "stubs per consumer" approach
There are cases in which 2 consumers of the same endpoint want to have 2 different responses. Without this change we don't support it. We don't support that consumers may overlap with their contracts. The outcome of such overlapping is that the first matching stub will be registered in HTTP server stub and the other will be ignored.
With this change we're allowing such a thing to happen. Each consumer can set the `stubrunner.stubs-per-consumer` flag and the `spring.application.name` or `stubrunner.consumer-name` flag will be taken into consideration. If the consumer's name is present in the path of a stub / contract then its mapping / messaging contract will be reused in tests. If not then it will get ignored

fixes #224
2017-05-04 15:15:10 +02:00
Tomasz Kopczynski
d301f547f6 Spring REST Docs integration docs fix (#288)
I believe this was meant to enumerate Spring REST Docs supported technologies. If so, then it should be Rest Assured here.
2017-04-28 18:12:29 +02:00
Marcin Grzejszczak
551f77d0ca Merge branch '1.0.x' 2017-04-28 15:08:06 +02:00
Marcin Grzejszczak
d0841400ef Fixed the test resources for Gradle
wiuthout this change Intellij support wasn't great if one hasn't applied the idea plugin
with this change if someone's using Intellij (we check that by verifying the presence of .idea folder) then we apply the plugin automatically

fixes #286
2017-04-28 15:05:56 +02:00
Marcin Grzejszczak
0c07996d4f Deploying moco-stub jar 2017-04-28 14:10:09 +02:00
Marcin Grzejszczak
97a4d6c101 Merge branch '1.0.x' 2017-04-28 13:15:56 +02:00
Marcin Grzejszczak
8ca2ed6b22 Fixed the way package and class names are generated
with the new layout of contracts and stubs the package name was improperly generated (for chars like +, or digits)
with this change we're converting those chars to _

fixes #276
2017-04-28 12:46:45 +02:00
Marcin Grzejszczak
e442dcd47b Updated docs 2017-04-27 17:46:39 +02:00
Marcin Grzejszczak
c9538548fd Adds an option to use StubRunner from classpath (#284)
without this change there's no option to use Stub Runner to pick stubs from classpath
with this change we're adding that option. It's enough for the user not to provide neither the `repositoryRoot` nor `workOffline`. If that's the case then Classpath scanning will take place.

fixes #282
2017-04-27 17:13:15 +02:00
Marcin Grzejszczak
0ea4ecc9e7 Merge branch '1.0.x' 2017-04-26 15:07:32 +02:00
Marcin Grzejszczak
c22c47153e Fixed wrong copy paste in the docs
fixes #281
2017-04-26 15:06:00 +02:00
Marcin Grzejszczak
36541edefa Merge branch '1.0.x' 2017-04-26 15:00:02 +02:00
Marcin Grzejszczak
8f838a8a28 Not running HTTP server if there are no mappings / contracts
without this change we're forcing the users to turn on web components even they don't use them
with this change if there are no mappings or contracts then we do not start the web server

fixes #279
2017-04-26 14:36:48 +02:00
Marcin Grzejszczak
08e6493a57 Merge branch '1.0.x' 2017-04-26 13:44:37 +02:00
Marcin Grzejszczak
a075eda67f Added configuration options for JUnit rule & messaging
without this change not only can't you configure messaging for JUnit rule but also the default option is misleading - it fials to send any messages and returns true
with this change we're allowing configuration options and change the default behaviour to throwing unsupported operation exceptions

fixes #280
2017-04-26 13:30:33 +02:00