From 664082d84301cf5d3154331670b90b669ece407d Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 15 Jul 2016 22:03:17 +0100 Subject: [PATCH] Merge junit features into main stub runner module --- .../main/asciidoc/verifier/stubrunner.adoc | 3 - spring-cloud-contract-stub-runner/pom.xml | 1 - .../README.adoc | 65 ----------------- .../pom.xml | 64 ----------------- .../src/test/resources/logback.xml | 30 -------- .../camel/StubRunnerCamelConfiguration.java | 21 +++--- .../README.adoc | 67 +++++++++++++++++- .../spring-cloud-contract-stub-runner/pom.xml | 8 +-- .../stubrunner/junit/StubRunnerRule.java | 0 .../stubrunner/StubRunnerExecutorSpec.groovy | 6 ++ .../StubRunnerRuleCustomPortJUnitTest.java | 0 .../junit/StubRunnerRuleJUnitTest.java | 0 .../junit/StubRunnerRuleSpec.groovy | 0 ...udDetectionServer-0.0.1-SNAPSHOT-stubs.jar | Bin .../fraudDetectionServer-0.0.1-SNAPSHOT.pom | 0 .../fraudDetectionServer/maven-metadata.xml | 0 .../loanIssuance-0.0.1-SNAPSHOT-stubs.jar | Bin .../loanIssuance-0.0.1-SNAPSHOT.pom | 0 .../stubs/loanIssuance/maven-metadata.xml | 0 19 files changed, 89 insertions(+), 176 deletions(-) delete mode 100644 spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/README.adoc delete mode 100644 spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/pom.xml delete mode 100644 spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/resources/logback.xml rename spring-cloud-contract-stub-runner/{spring-cloud-contract-stub-runner-junit => spring-cloud-contract-stub-runner}/src/main/java/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRule.java (100%) rename spring-cloud-contract-stub-runner/{spring-cloud-contract-stub-runner-junit => spring-cloud-contract-stub-runner}/src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleCustomPortJUnitTest.java (100%) rename spring-cloud-contract-stub-runner/{spring-cloud-contract-stub-runner-junit => spring-cloud-contract-stub-runner}/src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleJUnitTest.java (100%) rename spring-cloud-contract-stub-runner/{spring-cloud-contract-stub-runner-junit => spring-cloud-contract-stub-runner}/src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleSpec.groovy (100%) rename spring-cloud-contract-stub-runner/{spring-cloud-contract-stub-runner-junit => spring-cloud-contract-stub-runner}/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT-stubs.jar (100%) rename spring-cloud-contract-stub-runner/{spring-cloud-contract-stub-runner-junit => spring-cloud-contract-stub-runner}/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT.pom (100%) rename spring-cloud-contract-stub-runner/{spring-cloud-contract-stub-runner-junit => spring-cloud-contract-stub-runner}/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/maven-metadata.xml (100%) rename spring-cloud-contract-stub-runner/{spring-cloud-contract-stub-runner-junit => spring-cloud-contract-stub-runner}/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/0.0.1-SNAPSHOT/loanIssuance-0.0.1-SNAPSHOT-stubs.jar (100%) rename spring-cloud-contract-stub-runner/{spring-cloud-contract-stub-runner-junit => spring-cloud-contract-stub-runner}/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/0.0.1-SNAPSHOT/loanIssuance-0.0.1-SNAPSHOT.pom (100%) rename spring-cloud-contract-stub-runner/{spring-cloud-contract-stub-runner-junit => spring-cloud-contract-stub-runner}/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/maven-metadata.xml (100%) diff --git a/docs/src/main/asciidoc/verifier/stubrunner.adoc b/docs/src/main/asciidoc/verifier/stubrunner.adoc index c8aecbc880..c9534dc3ac 100644 --- a/docs/src/main/asciidoc/verifier/stubrunner.adoc +++ b/docs/src/main/asciidoc/verifier/stubrunner.adoc @@ -44,7 +44,6 @@ Spring Cloud Contract Stub Runner comes with a new structure of modules └── spring-cloud-contract-stub-runner ├── spring-cloud-contract-stub-runner ├── spring-cloud-contract-stub-runner-boot - ├── spring-cloud-contract-stub-runner-junit ├── spring-cloud-contract-stub-runner-spring └── spring-cloud-contract-stub-runner-spring-cloud ---- @@ -55,8 +54,6 @@ include::{stubrunner_core_path}/spring-cloud-contract-stub-runner-boot/README.ad include::{stubrunner_core_path}/spring-cloud-contract-stub-runner-jetty/README.adoc[] -include::{stubrunner_core_path}/spring-cloud-contract-stub-runner-junit/README.adoc[] - include::{stubrunner_core_path}/spring-cloud-contract-stub-runner-spring/README.adoc[] include::{stubrunner_core_path}/spring-cloud-contract-stub-runner-spring-cloud/README.adoc[] diff --git a/spring-cloud-contract-stub-runner/pom.xml b/spring-cloud-contract-stub-runner/pom.xml index a9c7f3939c..b30d092eae 100644 --- a/spring-cloud-contract-stub-runner/pom.xml +++ b/spring-cloud-contract-stub-runner/pom.xml @@ -20,7 +20,6 @@ spring-cloud-contract-stub-runner spring-cloud-contract-stub-runner-jetty - spring-cloud-contract-stub-runner-junit spring-cloud-contract-stub-runner-spring spring-cloud-contract-stub-runner-boot spring-cloud-contract-stub-runner-messaging diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/README.adoc b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/README.adoc deleted file mode 100644 index 6fa5144dd0..0000000000 --- a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/README.adoc +++ /dev/null @@ -1,65 +0,0 @@ -=== Stub Runner JUnit Rule - -Stub Runner comes with a JUnit rule thanks to which you can very easily download and run stubs for given group and artifact id: - -[source,java,indent=0] ----- -include::src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleJUnitTest.java[tags=classrule] ----- - -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 / provided port -- feed the WireMock server with all JSON files that are valid WireMock definitions - -Stub Runner uses https://wiki.eclipse.org/Aether[Eclipse Aether] mechanism to download the Maven dependencies. -Check their https://wiki.eclipse.org/Aether[docs] for more information. - -Since the `StubRunnerRule` implements the `StubFinder` it allows you to find the started stubs: - -[source,groovy,indent=0] ----- -include::../spring-cloud-contract-stub-runner/src/main/groovy/org/springframework/cloud/contract/stubrunner/StubFinder.groovy[] ----- - -Example of usage in Spock tests: - -[source,groovy,indent=0] ----- -include::src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleSpec.groovy[tags=classrule] ----- - -Example of usage in JUnit tests: - -[source,java,indent=0] ----- -include::src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleJUnitTest.java[tags=test] ----- - -Check the *Common properties for JUnit and Spring* for more information on how to apply global configuration of Stub Runner. - -==== Providing fixed ports - -You can also run your stubs on fixed ports. You can do it in two different ways. One is to pass it in the properties, and the other via fluent API of -JUnit rule. - -==== Fluent API - -When using the `StubRunnerRule` you can add a stub to download and then pass the port for the last downloaded stub. - -[source,java,indent=0] ----- -include::src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleCustomPortJUnitTest.java[tags=classrule_with_port] ----- - -You can see that for this example the following test is valid: - -[source,java,indent=0] ----- -include::src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleCustomPortJUnitTest.java[tags=test_with_port] ----- - - diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/pom.xml b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/pom.xml deleted file mode 100644 index 8e91e3cd7e..0000000000 --- a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/pom.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - 4.0.0 - - org.springframework.cloud - spring-cloud-contract-stub-runner-build - 1.0.0.BUILD-SNAPSHOT - .. - - spring-cloud-contract-stub-runner-junit - jar - Spring Cloud Contract Stub Runner JUnit - Spring Cloud Contract Stub Runner JUnit - - - org.springframework.cloud - spring-cloud-contract-stub-runner-jetty - - - junit - junit - - - org.codehaus.groovy - groovy - - - org.spockframework - spock-core - test - - - org.springframework.boot - spring-boot-starter-test - test - - - org.slf4j - slf4j-simple - test - - - info.solidsoft.spock - spock-global-unroll - test - - - - - - org.codehaus.gmavenplus - gmavenplus-plugin - - - - testCompile - - - - - - - diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/resources/logback.xml b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/resources/logback.xml deleted file mode 100644 index 7eecabf2f2..0000000000 --- a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/resources/logback.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n - - - - - - - \ No newline at end of file diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-messaging/spring-cloud-contract-stub-runner-camel/src/main/java/org/springframework/cloud/contract/stubrunner/messaging/camel/StubRunnerCamelConfiguration.java b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-messaging/spring-cloud-contract-stub-runner-camel/src/main/java/org/springframework/cloud/contract/stubrunner/messaging/camel/StubRunnerCamelConfiguration.java index f94ff91f8b..c6b6feaba5 100644 --- a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-messaging/spring-cloud-contract-stub-runner-camel/src/main/java/org/springframework/cloud/contract/stubrunner/messaging/camel/StubRunnerCamelConfiguration.java +++ b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-messaging/spring-cloud-contract-stub-runner-camel/src/main/java/org/springframework/cloud/contract/stubrunner/messaging/camel/StubRunnerCamelConfiguration.java @@ -41,17 +41,22 @@ public class StubRunnerCamelConfiguration { return new SpringRouteBuilder() { @Override public void configure() throws Exception { - Map> contracts = batchStubRunner.getContracts(); - for (Collection list : contracts.values()) { - for (Contract it : list) { - if (it.getInput()!=null && it.getInput().getMessageFrom()!=null && it.getOutputMessage()!=null && it.getOutputMessage().getSentTo()!=null) { - from(it.getInput().getMessageFrom().getClientValue()) + Map> contracts = batchStubRunner + .getContracts(); + for (Collection list : contracts.values()) { + for (Contract it : list) { + if (it.getInput() != null + && it.getInput().getMessageFrom() != null + && it.getOutputMessage() != null + && it.getOutputMessage().getSentTo() != null) { + from(it.getInput().getMessageFrom().getClientValue()) .filter(new StubRunnerCamelPredicate(it)) .process(new StubRunnerCamelProcessor(it)) - .to(it.getOutputMessage().getSentTo().getClientValue()); - } - } + .to(it.getOutputMessage().getSentTo() + .getClientValue()); } + } + } } }; } diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/README.adoc b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/README.adoc index 395c867e3c..612f4cd746 100644 --- a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/README.adoc +++ b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/README.adoc @@ -63,4 +63,69 @@ Every stubbed collaborator exposes list of defined mappings under `__/admin/` en ===== Messaging Stubs -Depending on the provided Stub Runner dependency and the DSL the messaging routes are automatically set up. \ No newline at end of file +Depending on the provided Stub Runner dependency and the DSL the messaging routes are automatically set up. + +=== Stub Runner JUnit Rule + +Stub Runner comes with a JUnit rule thanks to which you can very easily download and run stubs for given group and artifact id: + +[source,java,indent=0] +---- +include::src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleJUnitTest.java[tags=classrule] +---- + +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 / provided port +- feed the WireMock server with all JSON files that are valid WireMock definitions + +Stub Runner uses https://wiki.eclipse.org/Aether[Eclipse Aether] mechanism to download the Maven dependencies. +Check their https://wiki.eclipse.org/Aether[docs] for more information. + +Since the `StubRunnerRule` implements the `StubFinder` it allows you to find the started stubs: + +[source,groovy,indent=0] +---- +include::../spring-cloud-contract-stub-runner/src/main/groovy/org/springframework/cloud/contract/stubrunner/StubFinder.groovy[] +---- + +Example of usage in Spock tests: + +[source,groovy,indent=0] +---- +include::src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleSpec.groovy[tags=classrule] +---- + +Example of usage in JUnit tests: + +[source,java,indent=0] +---- +include::src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleJUnitTest.java[tags=test] +---- + +Check the *Common properties for JUnit and Spring* for more information on how to apply global configuration of Stub Runner. + +==== Providing fixed ports + +You can also run your stubs on fixed ports. You can do it in two different ways. One is to pass it in the properties, and the other via fluent API of +JUnit rule. + +==== Fluent API + +When using the `StubRunnerRule` you can add a stub to download and then pass the port for the last downloaded stub. + +[source,java,indent=0] +---- +include::src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleCustomPortJUnitTest.java[tags=classrule_with_port] +---- + +You can see that for this example the following test is valid: + +[source,java,indent=0] +---- +include::src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleCustomPortJUnitTest.java[tags=test_with_port] +---- + diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/pom.xml b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/pom.xml index cee0572e9c..8e45a3af9e 100644 --- a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/pom.xml +++ b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/pom.xml @@ -34,10 +34,6 @@ org.springframework spring-core - - org.codehaus.groovy - groovy - args4j args4j @@ -66,6 +62,10 @@ org.apache.maven maven-aether-provider + + junit + junit + cglib cglib diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/main/java/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRule.java b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRule.java similarity index 100% rename from spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/main/java/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRule.java rename to spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRule.java diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/StubRunnerExecutorSpec.groovy b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/StubRunnerExecutorSpec.groovy index ad8b9bfe41..ae78bc475f 100644 --- a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/StubRunnerExecutorSpec.groovy +++ b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/StubRunnerExecutorSpec.groovy @@ -63,6 +63,8 @@ class StubRunnerExecutorSpec extends Specification { executor.runStubs(stubRunnerOptions, repository, stub) then: !executor.findStubUrl("unkowngroup", "unknownartifact") + cleanup: + executor.shutdown() } def 'should start a stub on a given port'() { @@ -74,6 +76,8 @@ class StubRunnerExecutorSpec extends Specification { executor.runStubs(stubRunnerOptions, repository, stub) then: executor.findStubUrl("group", "artifact") == 'http://localhost:12345'.toURL() + cleanup: + executor.shutdown() } def 'should ensure that triggered contracts have properly parsed message body when a message is sent'() { @@ -84,6 +88,8 @@ class StubRunnerExecutorSpec extends Specification { executor.trigger('send_order') then: noExceptionThrown() + cleanup: + executor.shutdown() } Map stubIdsWithPortsFromString(String stubIdsToPortMapping) { diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleCustomPortJUnitTest.java b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleCustomPortJUnitTest.java similarity index 100% rename from spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleCustomPortJUnitTest.java rename to spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleCustomPortJUnitTest.java diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleJUnitTest.java b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleJUnitTest.java similarity index 100% rename from spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleJUnitTest.java rename to spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleJUnitTest.java diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleSpec.groovy b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleSpec.groovy similarity index 100% rename from spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleSpec.groovy rename to spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/junit/StubRunnerRuleSpec.groovy diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT-stubs.jar b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT-stubs.jar similarity index 100% rename from spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT-stubs.jar rename to spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT-stubs.jar diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT.pom b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT.pom similarity index 100% rename from spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT.pom rename to spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT.pom diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/maven-metadata.xml b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/maven-metadata.xml similarity index 100% rename from spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/maven-metadata.xml rename to spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/maven-metadata.xml diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/0.0.1-SNAPSHOT/loanIssuance-0.0.1-SNAPSHOT-stubs.jar b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/0.0.1-SNAPSHOT/loanIssuance-0.0.1-SNAPSHOT-stubs.jar similarity index 100% rename from spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/0.0.1-SNAPSHOT/loanIssuance-0.0.1-SNAPSHOT-stubs.jar rename to spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/0.0.1-SNAPSHOT/loanIssuance-0.0.1-SNAPSHOT-stubs.jar diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/0.0.1-SNAPSHOT/loanIssuance-0.0.1-SNAPSHOT.pom b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/0.0.1-SNAPSHOT/loanIssuance-0.0.1-SNAPSHOT.pom similarity index 100% rename from spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/0.0.1-SNAPSHOT/loanIssuance-0.0.1-SNAPSHOT.pom rename to spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/0.0.1-SNAPSHOT/loanIssuance-0.0.1-SNAPSHOT.pom diff --git a/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/maven-metadata.xml b/spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/maven-metadata.xml similarity index 100% rename from spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner-junit/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/maven-metadata.xml rename to spring-cloud-contract-stub-runner/spring-cloud-contract-stub-runner/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/maven-metadata.xml