Skip to content

Commit

Permalink
chore(pact-jvm-server): Fixed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Nov 21, 2024
1 parent 9fccb2b commit feba2e0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit feba2e0

Please sign in to comment.