Files
spring-cloud-contract/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-spring
2016-07-09 10:34:49 +01:00
..
2016-07-09 10:34:49 +01:00
2016-07-09 10:34:49 +01:00
2016-07-09 10:34:49 +01:00

=== Stub Runner Spring

Sets up Spring configuration of the Stub Runner project.

By providing a list of stubs inside your configuration file the Stub Runner automatically downloads 
and registers in WireMock the selected stubs.

If you want to find the URL of your stubbed dependency you can autowire the `StubFinder` interface and use
its methods as presented below:

[source,groovy,indent=0]
----
include::src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/StubRunnerConfigurationSpec.groovy[tags=test]
----

for the following configuration file:

[source,yml,indent=0]
----
include::src/test/resources/application.yml[]
----