|
2 | 2 |
|
3 | 3 | import org.junit.jupiter.api.extension.ExtendWith; |
4 | 4 | import au.com.dius.pact.consumer.MockServer; |
| 5 | +import au.com.dius.pact.core.model.PactSpecVersion; |
5 | 6 | import au.com.dius.pact.core.model.RequestResponsePact; |
6 | 7 | import au.com.dius.pact.core.model.annotations.Pact; |
7 | | -import graphql.ExecutionResult; |
8 | | -import graphql.GraphQL; |
9 | | -import graphql.schema.GraphQLSchema; |
10 | | -import graphql.schema.StaticDataFetcher; |
11 | | -import graphql.schema.idl.RuntimeWiring; |
12 | | -import graphql.schema.idl.SchemaGenerator; |
13 | | -import graphql.schema.idl.SchemaParser; |
14 | | -import graphql.schema.idl.TypeDefinitionRegistry; |
15 | | -import static graphql.schema.idl.RuntimeWiring.newRuntimeWiring; |
16 | | - |
17 | | -import au.com.dius.pact.consumer.dsl.PactDslJsonArray; |
18 | 8 | import au.com.dius.pact.consumer.dsl.PactDslJsonBody; |
19 | 9 | import au.com.dius.pact.consumer.dsl.PactDslWithProvider; |
20 | 10 | import au.com.dius.pact.consumer.junit5.PactConsumerTestExt; |
|
23 | 13 |
|
24 | 14 | import java.io.IOException; |
25 | 15 | import java.net.URISyntaxException; |
26 | | -import java.util.List; |
27 | 16 | import java.util.Map; |
28 | 17 |
|
29 | 18 | import static org.hamcrest.MatcherAssert.assertThat; |
@@ -78,7 +67,7 @@ public RequestResponsePact getProduct(PactDslWithProvider builder) { |
78 | 67 | .toPact(); |
79 | 68 | } |
80 | 69 |
|
81 | | - @PactTestFor(pactMethod = "getProduct") |
| 70 | + @PactTestFor(pactMethod = "getProduct", pactVersion = PactSpecVersion.V3) |
82 | 71 | @Test |
83 | 72 | public void testGetProduct(MockServer mockServer) throws IOException, URISyntaxException { |
84 | 73 | Product product = new ProductClient().setUrl(mockServer.getUrl()).getProduct("10"); |
|
0 commit comments