From feba2e034ece03964f86348c6a0997f2fd4fd46a Mon Sep 17 00:00:00 2001 From: Ronald Holshausen Date: Thu, 21 Nov 2024 11:44:02 +1100 Subject: [PATCH] chore(pact-jvm-server): Fixed failing test --- .../test/groovy/au/com/dius/pact/server/CompleteSpec.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pact-jvm-server/src/test/groovy/au/com/dius/pact/server/CompleteSpec.groovy b/pact-jvm-server/src/test/groovy/au/com/dius/pact/server/CompleteSpec.groovy index 5f9652962..526492224 100644 --- a/pact-jvm-server/src/test/groovy/au/com/dius/pact/server/CompleteSpec.groovy +++ b/pact-jvm-server/src/test/groovy/au/com/dius/pact/server/CompleteSpec.groovy @@ -11,6 +11,7 @@ import au.com.dius.pact.core.model.PactWriter import au.com.dius.pact.core.model.Pact import spock.lang.Specification +@SuppressWarnings('UnnecessaryGetter') class CompleteSpec extends Specification { def 'getPort'() { expect: @@ -112,7 +113,7 @@ class CompleteSpec extends Specification { then: 1 * mockWriter.writePact(_, pact, _) result.response.status == 200 - result.newState.state.empty + result.newState.state.isEmpty() cleanup: Complete.INSTANCE.pactWriter = DefaultPactWriter.INSTANCE @@ -142,7 +143,7 @@ class CompleteSpec extends Specification { then: 0 * mockWriter.writePact(_, pact, _) result.response.status == 400 - result.newState.state.empty + result.newState.state.isEmpty() cleanup: Complete.INSTANCE.pactWriter = DefaultPactWriter.INSTANCE