diff options
author | Bogumil Zebek <bogumil.zebek@nokia.com> | 2020-09-17 09:57:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-09-17 09:57:03 +0000 |
commit | 0b1c93f6a53ab722a41ff3a827ca56022ade76a3 (patch) | |
tree | bc92737958861d7fdf58ae826b41ca2090da2bdd /certService/src/test/java | |
parent | 7e750789319d435f4fb4f2f67930ce6b2635ac65 (diff) | |
parent | 7ff0269a5d0c9995cf9151dec4d176f54e37f7e4 (diff) |
Merge "[OOM-CPMv2] Fix sonar issue"
Diffstat (limited to 'certService/src/test/java')
-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); - ; } } |