Updated Groovy version, changed StubTrigger name

This commit is contained in:
Marcin Grzejszczak
2016-04-25 15:43:42 +02:00
parent 941a7bd30c
commit 3232adefe6
5 changed files with 6 additions and 6 deletions

View File

@@ -13,8 +13,8 @@
- now all DSL files have to be under `contractsDslDir`/*subpackage* resulting in `basePackageForTests`.*subpackage* test package creation
- If you don't migrate to the new approach you will have your tests under `contractsDslDir`.`contractsDslDir`.*subpackage*
=== Migration to 1.0.7
- from 1.0.7 we're setting JUnit as a default testing utility. You have to pass the following option to keep Spock
=== Migration to {messaging_version}
- from {messaging_version} we're setting JUnit as a default testing utility. You have to pass the following option to keep Spock
as your first choice:
[source,groovy]

View File

@@ -16,7 +16,7 @@ To trigger a message it's enough to use the `StubTiggerer` interface:
[source,groovy]
----
include::../../../../stub-runner/stub-runner/src/main/groovy/io/codearte/accurest/stubrunner/StubTriggerer.groovy[]
include::../../../../stub-runner/stub-runner/src/main/groovy/io/codearte/accurest/stubrunner/StubTrigger.groovy[]
----
For convenience the `StubFinder` interface extends `StubTrigger` so it's enough to use only one in your tests.

View File

@@ -7,7 +7,7 @@ dependencies {
compile project(':accurest-core')
compile project(':accurest-messaging-root:accurest-messaging-core')
compile 'org.apache.ivy:ivy:2.4.0'
compile localGroovy()
compile 'org.codehaus.groovy:groovy-all:2.4.4'
compile "com.github.tomakehurst:wiremock:$wiremockVersion"
compile 'javax.servlet:javax.servlet-api:3.1.0'
compile 'args4j:args4j:2.32'

View File

@@ -2,7 +2,7 @@ package io.codearte.accurest.stubrunner
import io.codearte.accurest.dsl.GroovyDsl
interface StubFinder extends StubTriggerer {
interface StubFinder extends StubTrigger {
/**
* For the given groupId and artifactId tries to find the matching
* URL of the running stub.

View File

@@ -1,6 +1,6 @@
package io.codearte.accurest.stubrunner
interface StubTriggerer {
interface StubTrigger {
/**
* Triggers an event by a given label for a given {@code groupid:artifactid} notation. You can use only {@code artifactId} too.