Updated docs

This commit is contained in:
Marcin Grzejszczak
2016-04-27 12:36:34 +02:00
parent b2e6ea7c26
commit 92f3eafa0e
2 changed files with 10 additions and 9 deletions

View File

@@ -8,11 +8,12 @@ include::src/test/groovy/io/codearte/accurest/stubrunner/junit/AccurestRuleJUnit
----
After that rule gets executed Stub Runner connects to your Maven repository and for the given list of dependencies tries to:
* download them
* cache them locally
* unzip them to a temporary folder
* start a WireMock server for each Maven dependency on a random port from the provided range of ports
* feed the WireMock server with all JSON files that are valid WireMock definitions
- download them
- cache them locally
- unzip them to a temporary folder
- start a WireMock server for each Maven dependency on a random port from the provided range of ports
- feed the WireMock server with all JSON files that are valid WireMock definitions
Stub Runner uses http://docs.groovy-lang.org/latest/html/documentation/grape.html[Groovy's Grape] mechanism to download the Maven dependencies.
Check their http://docs.groovy-lang.org/latest/html/documentation/grape.html[docs] for more information.

View File

@@ -154,7 +154,7 @@ class IntegrationStubRunnerSpec extends Specification {
triggeredBy('bookReturnedTriggered()')
}
outputMessage {
sentTo('jms:output')
sentTo('output')
body('''{ "bookName" : "foo" }''')
headers {
header('BOOK-NAME', 'foo')
@@ -168,7 +168,7 @@ class IntegrationStubRunnerSpec extends Specification {
io.codearte.accurest.dsl.GroovyDsl.make {
label 'return_book_2'
input {
messageFrom('jms:input')
messageFrom('input')
messageBody([
bookName: 'foo'
])
@@ -177,7 +177,7 @@ class IntegrationStubRunnerSpec extends Specification {
}
}
outputMessage {
sentTo('jms:output')
sentTo('output')
body([
bookName: 'foo'
])
@@ -193,7 +193,7 @@ class IntegrationStubRunnerSpec extends Specification {
io.codearte.accurest.dsl.GroovyDsl.make {
label 'delete_book'
input {
messageFrom('jms:delete')
messageFrom('delete')
messageBody([
bookName: 'foo'
])