From 205bbd341c7db41ca15864f5ba02d8878b9b124a Mon Sep 17 00:00:00 2001 From: Ronald Holshausen Date: Mon, 26 Sep 2022 14:35:36 +1000 Subject: [PATCH] chore: fix for 'compileTestJava' task (current target is 18) and 'compileTestKotlin' task (current target is 11) jvm target compatibility should be set to the same Java version --- build.gradle | 2 ++ .../au/com/dius/pact/consumer/junit/MultiCookieTest.groovy | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 24f7588b23..739e3ce2d8 100644 --- a/build.gradle +++ b/build.gradle @@ -67,6 +67,8 @@ subprojects { java { // modularity.inferModulePath = true + targetCompatibility = '11' + sourceCompatibility = '11' } compileTestGroovy { diff --git a/consumer/junit/src/test/groovy/au/com/dius/pact/consumer/junit/MultiCookieTest.groovy b/consumer/junit/src/test/groovy/au/com/dius/pact/consumer/junit/MultiCookieTest.groovy index a3b1e3c194..f791708d91 100644 --- a/consumer/junit/src/test/groovy/au/com/dius/pact/consumer/junit/MultiCookieTest.groovy +++ b/consumer/junit/src/test/groovy/au/com/dius/pact/consumer/junit/MultiCookieTest.groovy @@ -39,7 +39,7 @@ class MultiCookieTest { response.success { FromServer fs, Object body -> assert fs.statusCode == 200 - assert fs.headers.findAll { it.key == 'set-cookie' }*.value == [ + assert fs.headers.findAll { it.key.toLowerCase() == 'set-cookie' }*.value == [ 'someCookie=someValue; Path=/', 'someOtherCookie=someValue; Path=/', 'someThirdCookie=someValue; Path=/' ] }