From 0bed04371871dbcd898d0b64ba57b4a304d7c525 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 13 Mar 2021 16:13:41 +0100 Subject: [PATCH] WIP --- ...erServiceConsumer.java => RemoteUsersServiceConsumer.java} | 2 +- .../consumer/domain/{UserService.java => UsersService.java} | 0 .../demos/consumer/adapter/RemoteUsersServiceConsumerIT.java} | 4 +++- 3 files changed, 4 insertions(+), 2 deletions(-) rename consumer/src/main/java/de/juplo/demos/consumer/adapter/{RemoteUserServiceConsumer.java => RemoteUsersServiceConsumer.java} (94%) rename consumer/src/main/java/de/juplo/demos/consumer/domain/{UserService.java => UsersService.java} (100%) rename consumer/src/{main/java/de/juplo/demos/consumer/adapter/RemoteUserServiceConsumerIT.java => test/java/de/juplo/demos/consumer/adapter/RemoteUsersServiceConsumerIT.java} (54%) diff --git a/consumer/src/main/java/de/juplo/demos/consumer/adapter/RemoteUserServiceConsumer.java b/consumer/src/main/java/de/juplo/demos/consumer/adapter/RemoteUsersServiceConsumer.java similarity index 94% rename from consumer/src/main/java/de/juplo/demos/consumer/adapter/RemoteUserServiceConsumer.java rename to consumer/src/main/java/de/juplo/demos/consumer/adapter/RemoteUsersServiceConsumer.java index 104339c..fd09ddc 100644 --- a/consumer/src/main/java/de/juplo/demos/consumer/adapter/RemoteUserServiceConsumer.java +++ b/consumer/src/main/java/de/juplo/demos/consumer/adapter/RemoteUsersServiceConsumer.java @@ -12,7 +12,7 @@ import java.util.UUID; @RequiredArgsConstructor -public class RemoteUserServiceConsumer implements UserService +public class RemoteUsersServiceConsumer implements UserService { private String uriTemplate; private RestTemplate restTemplate; diff --git a/consumer/src/main/java/de/juplo/demos/consumer/domain/UserService.java b/consumer/src/main/java/de/juplo/demos/consumer/domain/UsersService.java similarity index 100% rename from consumer/src/main/java/de/juplo/demos/consumer/domain/UserService.java rename to consumer/src/main/java/de/juplo/demos/consumer/domain/UsersService.java diff --git a/consumer/src/main/java/de/juplo/demos/consumer/adapter/RemoteUserServiceConsumerIT.java b/consumer/src/test/java/de/juplo/demos/consumer/adapter/RemoteUsersServiceConsumerIT.java similarity index 54% rename from consumer/src/main/java/de/juplo/demos/consumer/adapter/RemoteUserServiceConsumerIT.java rename to consumer/src/test/java/de/juplo/demos/consumer/adapter/RemoteUsersServiceConsumerIT.java index 2a33f89..12ce6c9 100644 --- a/consumer/src/main/java/de/juplo/demos/consumer/adapter/RemoteUserServiceConsumerIT.java +++ b/consumer/src/test/java/de/juplo/demos/consumer/adapter/RemoteUsersServiceConsumerIT.java @@ -1,11 +1,13 @@ package de.juplo.demos.consumer.adapter; +import au.com.dius.pact.consumer.junit5.PactConsumerTestExt; +import au.com.dius.pact.consumer.junit5.PactTestFor; import org.junit.jupiter.api.extension.ExtendWith; @ExtendWith(PactConsumerTestExt.class) @PactTestFor(providerName = "UsersProvider") -public class RemoteUserServiceConsumerIT +public class RemoteUsersServiceConsumerIT { } -- 2.20.1