X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=policy-agent%2Fsrc%2Ftest%2Fjava%2Forg%2Foransc%2Fpolicyagent%2Fdmaap%2FDmaapMessageConsumerTest.java;h=5c11830068c2853ac3d9efa90f4e6d83e03dfdf6;hb=2310d1c6a458bd12b2d1ff805f1bd12dcd536cfa;hp=7b338ccc944723e84f47995624ee8473284af911;hpb=2305728286281ae2a483633e5b1d24287fa6544a;p=nonrtric.git diff --git a/policy-agent/src/test/java/org/oransc/policyagent/dmaap/DmaapMessageConsumerTest.java b/policy-agent/src/test/java/org/oransc/policyagent/dmaap/DmaapMessageConsumerTest.java index 7b338ccc..5c118300 100644 --- a/policy-agent/src/test/java/org/oransc/policyagent/dmaap/DmaapMessageConsumerTest.java +++ b/policy-agent/src/test/java/org/oransc/policyagent/dmaap/DmaapMessageConsumerTest.java @@ -54,7 +54,7 @@ import org.oransc.policyagent.utils.LoggingUtils; import org.springframework.http.HttpStatus; @ExtendWith(MockitoExtension.class) -public class DmaapMessageConsumerTest { +class DmaapMessageConsumerTest { @Mock private ApplicationConfig applicationConfigMock; @Mock @@ -65,12 +65,12 @@ public class DmaapMessageConsumerTest { private DmaapMessageConsumer messageConsumerUnderTest; @AfterEach - public void resetLogging() { + void resetLogging() { LoggingUtils.getLogListAppender(DmaapMessageConsumer.class); } @Test - public void dmaapNotConfigured_thenSleepAndRetryUntilConfig() throws Exception { + void dmaapNotConfigured_thenSleepAndRetryUntilConfig() throws Exception { messageConsumerUnderTest = spy(new DmaapMessageConsumer(applicationConfigMock)); doNothing().when(messageConsumerUnderTest).sleep(any(Duration.class)); @@ -86,7 +86,7 @@ public class DmaapMessageConsumerTest { } @Test - public void dmaapConfigurationRemoved_thenStopPollingDmaapSleepAndRetry() throws Exception { + void dmaapConfigurationRemoved_thenStopPollingDmaapSleepAndRetry() throws Exception { messageConsumerUnderTest = spy(new DmaapMessageConsumer(applicationConfigMock)); doNothing().when(messageConsumerUnderTest).sleep(any(Duration.class)); @@ -102,7 +102,7 @@ public class DmaapMessageConsumerTest { } @Test - public void dmaapConfiguredAndNoMessages_thenPollOnce() throws Exception { + void dmaapConfiguredAndNoMessages_thenPollOnce() throws Exception { setUpMrConfig(); messageConsumerUnderTest = spy(new DmaapMessageConsumer(applicationConfigMock)); @@ -123,7 +123,7 @@ public class DmaapMessageConsumerTest { } @Test - public void dmaapConfiguredAndErrorGettingMessages_thenLogWarningAndSleep() throws Exception { + void dmaapConfiguredAndErrorGettingMessages_thenLogWarningAndSleep() throws Exception { setUpMrConfig(); messageConsumerUnderTest = spy(new DmaapMessageConsumer(applicationConfigMock)); @@ -153,7 +153,7 @@ public class DmaapMessageConsumerTest { } @Test - public void dmaapConfiguredAndOneMessage_thenPollOnceAndProcessMessage() throws Exception { + void dmaapConfiguredAndOneMessage_thenPollOnceAndProcessMessage() throws Exception { setUpMrConfig(); messageConsumerUnderTest = spy(new DmaapMessageConsumer(applicationConfigMock));