import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@ExtendWith(PactConsumerTestExt.class)
@PactTestFor(providerName = "UsersProvider")
public class RemoteUsersServiceConsumerIT
{
@ExtendWith(PactConsumerTestExt.class)
@PactTestFor(providerName = "UsersProvider")
public class RemoteUsersServiceConsumerIT
{
@Pact(consumer="EmailServicesConsumer")
public RequestResponsePact getExistingUserByEmail(PactDslWithProvider builder) {
return builder
@Pact(consumer="EmailServicesConsumer")
public RequestResponsePact getExistingUserByEmail(PactDslWithProvider builder) {
return builder
@Test
@PactTestFor(pactMethod = "getExistingUserByEmail")
public void testGetExistingUserByEmail(MockServer mockServer) {
@Test
@PactTestFor(pactMethod = "getExistingUserByEmail")
public void testGetExistingUserByEmail(MockServer mockServer) {