Hi, I am bit new to pact. I have a pact junit5 con...
# pact-jvm
p
Hi, I am bit new to pact. I have a pact junit5 consumer test using 4.1.7 version and the moment I updrade to latest version - it throws error saying Method (pact method name) does not conform required method signature pact.core.model.V4Pact xxx (PactBuilder builder) Note: until pact junit5 consumer 4.2.21 - test works fine. How can I fix it with later junit5 consumer version ? Thanks
u
Set the Pact specification version to V3
message has been deleted
p
Great thanks .. with the above change - itโ€™s passing now. Also noticed with latest pact junit5 consumer 4.4.4 - port has been deprecated. Should we explicitly use MockServerConfig as in your screenshot (I tried that and it works fine) but the mockserverconfig library is part of junit consumer and not junit5 consumer - though itโ€™s not a big deal โ€ฆ
u
junit5 depends on junit, so it should be available
Those values will not go away until the next major version, so it should be ok to use the old ones
๐Ÿ‘ 1
p
Thank you so much for the super quick replies ๐Ÿ‘Œ ๐Ÿ‘
๐Ÿ‘ 1