diff --git a/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract.java b/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract.java index 2dc497bf0e..36868e5c00 100644 --- a/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract.java +++ b/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package example; import java.util.Collection; diff --git a/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_docs_examples.java b/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_docs_examples.java index b62b09dd25..7213f08f32 100644 --- a/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_docs_examples.java +++ b/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_docs_examples.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -//tag::class[] + import java.util.Collection; import java.util.Collections; import java.util.function.Supplier; @@ -130,18 +130,21 @@ class contract_docs_examples implements Supplier> { // `containing` function matches strings // that contains passed substring. - q.parameter("gender", r.value( - r.consumer(r.containing("[mf]")), r.producer("mf"))); + q.parameter("gender", + r.value(r.consumer(r.containing("[mf]")), + r.producer("mf"))); // `matching` function tests parameter // against passed regular expression. - q.parameter("offset", r.value( - r.consumer(r.matching("[0-9]+")), r.producer(123))); + q.parameter("offset", + r.value(r.consumer(r.matching("[0-9]+")), + r.producer(123))); // `notMatching` functions tests if parameter // does not match passed regular expression. - q.parameter("loginStartsWith", r.value( - r.consumer(r.notMatching(".{0,2}")), r.producer(3))); + q.parameter("loginStartsWith", + r.value(r.consumer(r.notMatching(".{0,2}")), + r.producer(3))); }); }); diff --git a/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_multipart.java b/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_multipart.java index f8dee04c57..f3985893dd 100644 --- a/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_multipart.java +++ b/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_multipart.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -//tag::class[] + import java.util.Collection; import java.util.Collections; import java.util.HashMap; diff --git a/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_rest.java b/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_rest.java index 0d7fd42fe6..a9745656b2 100644 --- a/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_rest.java +++ b/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_rest.java @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import java.util.Collection; import java.util.Collections; import java.util.function.Supplier; diff --git a/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_rest_from_file.java b/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_rest_from_file.java index af0b7ca125..addea24703 100644 --- a/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_rest_from_file.java +++ b/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_rest_from_file.java @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import java.util.Collection; import java.util.Collections; import java.util.function.Supplier; diff --git a/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_rest_from_pdf.java b/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_rest_from_pdf.java index a325f5e604..df507556e0 100644 --- a/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_rest_from_pdf.java +++ b/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_rest_from_pdf.java @@ -1,4 +1,3 @@ - /* * Copyright 2013-2019 the original author or authors. * @@ -14,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + //tag::class[] import java.util.Collection; import java.util.Collections; diff --git a/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_rest_with_tags.java b/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_rest_with_tags.java index ac90bec202..6d975f113a 100644 --- a/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_rest_with_tags.java +++ b/spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_rest_with_tags.java @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import java.util.Collection; import java.util.Collections; import java.util.function.Supplier; diff --git a/src/checkstyle/checkstyle-suppressions.xml b/src/checkstyle/checkstyle-suppressions.xml index e997e48975..b6b8b773c2 100644 --- a/src/checkstyle/checkstyle-suppressions.xml +++ b/src/checkstyle/checkstyle-suppressions.xml @@ -45,4 +45,5 @@ +