summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogumil Zebek <bogumil.zebek@nokia.com>2020-09-17 09:57:03 +0000
committerGerrit Code Review <gerrit@onap.org>2020-09-17 09:57:03 +0000
commit0b1c93f6a53ab722a41ff3a827ca56022ade76a3 (patch)
treebc92737958861d7fdf58ae826b41ca2090da2bdd
parent7e750789319d435f4fb4f2f67930ce6b2635ac65 (diff)
parent7ff0269a5d0c9995cf9151dec4d176f54e37f7e4 (diff)
Merge "[OOM-CPMv2] Fix sonar issue"
-rw-r--r--certService/src/test/java/org/onap/oom/certservice/api/ReadinessControllerTest.java8
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);
- ;
}
}