From bee0e4437107e8d139b1df63dce3e2221f8f60a0 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Sat, 26 Mar 2016 16:57:36 +0100 Subject: [PATCH] Updated stub-runner-junit docs --- stub-runner/stub-runner-junit/README.md | 19 +++++++++++-------- stub-runner/stub-runner/README.md | 1 - 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/stub-runner/stub-runner-junit/README.md b/stub-runner/stub-runner-junit/README.md index 761c3f431f..985bd8d743 100644 --- a/stub-runner/stub-runner-junit/README.md +++ b/stub-runner/stub-runner-junit/README.md @@ -14,12 +14,15 @@ class AccurestRuleSpec extends Specification { .downloadStub("io.codearte.accurest.stubs:fraudDetectionServer") def 'should start WireMock servers'() { - expect: - rule.findStubUrl('io.codearte.accurest.stubs', 'loanIssuance') != null - rule.findStubUrl('loanIssuance') != null - rule.findStubUrl('loanIssuance') == rule.findStubUrl('io.codearte.accurest.stubs', 'loanIssuance') - rule.findStubUrl('io.codearte.accurest.stubs:fraudDetectionServer') != null - } + expect: 'WireMocks are running' + rule.findStubUrl('io.codearte.accurest.stubs', 'loanIssuance') != null + rule.findStubUrl('loanIssuance') != null + rule.findStubUrl('loanIssuance') == rule.findStubUrl('io.codearte.accurest.stubs', 'loanIssuance') + rule.findStubUrl('io.codearte.accurest.stubs:fraudDetectionServer') != null + and: 'Stubs were registered' + "${rule.findStubUrl('loanIssuance').toString()}/name".toURL().text == 'loanIssuance' + "${rule.findStubUrl('fraudDetectionServer').toString()}/name".toURL().text == 'fraudDetectionServer' + } } ``` @@ -36,7 +39,7 @@ The list of configurable properties contains: | stubrunner.port.range.min | 10000 | Minimal value of a port for a WireMock server | | stubrunner.port.range.max | 15000 | Maximum value of a port for a WireMock server | | stubrunner.stubs.repository.root | | Address to your M2 repo (will point to local M2 repo if none is provided) | -| stubrunner.stubs.repository.root | | Address to your M2 repo (will point to local M2 repo if none is provided) | -| stubrunner.work-offline | false | Should try to connect to any repo to download stubs (especially good if there's no internet) | +| stubrunner.stubs.classifier | stubs | Default classifier for the JARs containing stubs | +| stubrunner.work-offline | false | Should try to connect to any repo to download stubs (useful if there's no internet) | | stubrunner.stubs | | Default comma separated list of stubs to download | diff --git a/stub-runner/stub-runner/README.md b/stub-runner/stub-runner/README.md index 78a8ce5829..bd148045da 100644 --- a/stub-runner/stub-runner/README.md +++ b/stub-runner/stub-runner/README.md @@ -47,7 +47,6 @@ or each parameter separately with a `-P` prefix and without the hyphen `-` in th ./gradlew stub-runner-root:stub-runner:run -Pc=pl -Pminp=10000 -Pmaxp=10005 -Ps=a:b:c,d:e,f:g:h ``` -By default stub definitions are stored in `mappings` directory inside stub repository. #### Stubs