diff --git a/src/test/java/jpo/sdw/depositor/controller/DepositControllerTest.java b/src/test/java/jpo/sdw/depositor/controller/DepositControllerTest.java index a8b98f7..539cbd6 100644 --- a/src/test/java/jpo/sdw/depositor/controller/DepositControllerTest.java +++ b/src/test/java/jpo/sdw/depositor/controller/DepositControllerTest.java @@ -26,13 +26,13 @@ public class DepositControllerTest { JavaMailSender sender; @Mocked - KafkaConsumerFactory capturingKafkaConsumerFactory; + KafkaConsumerFactory mockedCapturingKafkaConsumerFactory; @Mocked - KafkaConsumerRestDepositor capturingKafkaConsumerRestDepositor; + KafkaConsumerRestDepositor mockedCapturingKafkaConsumerRestDepositor; @Mocked - URI capturingURI; + URI mockedCapturingURI; @Test public void shouldRun() throws URISyntaxException { @@ -41,7 +41,7 @@ public void shouldRun() throws URISyntaxException { { injectableDepositorProperties.getDestinationUrl(); result = "127.0.0.1"; - capturingKafkaConsumerRestDepositor.run((String[]) any); + mockedCapturingKafkaConsumerRestDepositor.run((String[]) any); times = 1; } };