Merge branch '4.0.x'
This commit is contained in:
@@ -48,9 +48,9 @@ dependencies {
|
||||
contractTest {
|
||||
useJUnitPlatform()
|
||||
systemProperty 'spring.profiles.active', 'gradle'
|
||||
testLogging {
|
||||
exceptionFormat = 'full'
|
||||
}
|
||||
// testLogging {
|
||||
// exceptionFormat = 'full'
|
||||
// }
|
||||
afterSuite { desc, result ->
|
||||
if (!desc.parent) {
|
||||
println "Results: (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
|
||||
|
||||
@@ -150,8 +150,7 @@ public class Contract {
|
||||
public static void assertContract(Contract dsl) {
|
||||
if (dsl.getRequest() != null) {
|
||||
if (dsl.request.getUrl() == null && dsl.request.getUrlPath() == null) {
|
||||
throw new IllegalStateException(
|
||||
"URL is missing for HTTP contract");
|
||||
throw new IllegalStateException("URL is missing for HTTP contract");
|
||||
}
|
||||
if (dsl.request.getMethod() == null) {
|
||||
throw new IllegalStateException("Method is missing for HTTP contract");
|
||||
|
||||
Reference in New Issue
Block a user