diff options
author | tkogut <tomasz.kogut@nokia.com> | 2020-09-17 10:44:56 +0200 |
---|---|---|
committer | tkogut <tomasz.kogut@nokia.com> | 2020-09-17 10:44:56 +0200 |
commit | 7ff0269a5d0c9995cf9151dec4d176f54e37f7e4 (patch) | |
tree | b8878b156743e16114ff4474d7c7f31169436682 /certService/src/test | |
parent | dbe9528c1571b97728649b54e00be6ae947c23ef (diff) |
[OOM-CPMv2] Fix sonar issue
Remove unnecessary 'public' modifiers
Issue-ID: OOM-2526
Signed-off-by: tkogut <tomasz.kogut@nokia.com>
Change-Id: Id1f25aeb06a602fae40e4d103fdb4654bc9fec7d
Diffstat (limited to 'certService/src/test')
-rw-r--r-- | certService/src/test/java/org/onap/oom/certservice/api/ReadinessControllerTest.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/certService/src/test/java/org/onap/oom/certservice/api/ReadinessControllerTest.java b/certService/src/test/java/org/onap/oom/certservice/api/ReadinessControllerTest.java index 267a281b..2512458d 100644 --- a/certService/src/test/java/org/onap/oom/certservice/api/ReadinessControllerTest.java +++ b/certService/src/test/java/org/onap/oom/certservice/api/ReadinessControllerTest.java @@ -31,29 +31,27 @@ import org.onap.oom.certservice.certification.configuration.CmpServersConfig; import org.springframework.http.HttpStatus; @ExtendWith(MockitoExtension.class) -public class ReadinessControllerTest { +class ReadinessControllerTest { @Mock private CmpServersConfig cmpServersConfig; @Test - public void shouldReturnStatusOkWhenConfigIsReady() { + void shouldReturnStatusOkWhenConfigIsReady() { // Given Mockito.when(cmpServersConfig.isReady()).thenReturn(true); // Then assertThat(new ReadinessController(cmpServersConfig).checkReady().getStatusCode()).isEqualTo(HttpStatus.OK); - ; } @Test - public void shouldReturnStatusServiceUnavailableWhenConfigIsNotReady() { + void shouldReturnStatusServiceUnavailableWhenConfigIsNotReady() { // Given Mockito.when(cmpServersConfig.isReady()).thenReturn(false); // Then assertThat(new ReadinessController(cmpServersConfig).checkReady().getStatusCode()).isEqualTo(HttpStatus.SERVICE_UNAVAILABLE); - ; } } |