From e8cc55fe81d677b2549731b080f225a545004a38 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Thu, 24 Aug 2017 10:32:30 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- .../generateTests-mojo.html | 4 +-- spring-cloud-contract.html | 33 +++++++++++++++++-- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/spring-cloud-contract-maven-plugin/generateTests-mojo.html b/spring-cloud-contract-maven-plugin/generateTests-mojo.html index a3029bcd3b..ded0a58b55 100644 --- a/spring-cloud-contract-maven-plugin/generateTests-mojo.html +++ b/spring-cloud-contract-maven-plugin/generateTests-mojo.html @@ -350,7 +350,7 @@ case com.example.SomeBaseClass
User property is: baseCl - -(no description)
Default value is: org.springframework.cloud.contract.verifier.tests.
+(no description)
@@ -632,8 +632,6 @@ case com.example.SomeBaseClass
  • Type: java.lang.String
  • Required: No
  • - -
  • Default: org.springframework.cloud.contract.verifier.tests

  • contractDependency:

    diff --git a/spring-cloud-contract.html b/spring-cloud-contract.html index 73efbc04ca..e9de4d3040 100644 --- a/spring-cloud-contract.html +++ b/spring-cloud-contract.html @@ -262,6 +262,7 @@ $(addBlockSwitches);
  • 8.2. 1.1.x → 1.2.x
  • @@ -2268,7 +2269,8 @@ publishing {

    staticImports - array with static imports that should be included in generated tests(for example ['org.myorg.Matchers.*']). By default empty array []

  • -

    basePackageForTests - specifies base package for all generated tests. By default set to org.springframework.cloud.verifier.tests

    +

    basePackageForTests - specifies base package for all generated tests. If not set the value will be picked from baseClassForTests’s package and from +`packageWithBaseClasses. If neither of these are set then the value will be set to org.springframework.cloud.contract.verifier.tests

  • baseClassForTests - base class for all generated tests. By default spock.lang.Specification if using Spock tests.

    @@ -2684,7 +2686,8 @@ src/test/resources/contracts/myservice/shouldReturnUser.groovy

    testMode - defines mode for acceptance tests. By default MockMvc which is based on Spring’s MockMvc. It can also be changed to JaxRsClient or to Explicit for real HTTP calls.

  • -

    basePackageForTests - specifies base package for all generated tests. By default set to org.springframework.cloud.verifier.tests.

    +

    basePackageForTests - specifies base package for all generated tests. If not set the value will be picked from baseClassForTests’s package and from +`packageWithBaseClasses. If neither of these are set then the value will be set to org.springframework.cloud.contract.verifier.tests

  • ruleClassForTests - specifies Rule which should be added to generated test classes.

    @@ -9686,6 +9689,32 @@ all mappings available in a single HttpServerStub. Related to issue 355.

    +
    +

    8.2.2. New packages for generated tests

    +
    +

    The flow for setting the generated tests package name will look like this:

    +
    +
    +
      +
    • +

      pick basePackageForTests

      +
    • +
    • +

      if basePackageForTests wasn’t set pick the package from baseClassForTests

      +
    • +
    • +

      if baseClassForTests wasn’t set pick packageWithBaseClasses

      +
    • +
    • +

      if nothing got set pick the default org.springframework.cloud.contract.verifier.tests value

      +
    • +
    +
    +
    +

    Related to +issue 260.

    +
    +