Remove unnecessary 'public' modifiers
Issue-ID: OOM-2526
Signed-off-by: tkogut <tomasz.kogut@nokia.com>
Change-Id: Id1f25aeb06a602fae40e4d103fdb4654bc9fec7d
import org.springframework.http.HttpStatus;
@ExtendWith(MockitoExtension.class)
import org.springframework.http.HttpStatus;
@ExtendWith(MockitoExtension.class)
-public class ReadinessControllerTest {
+class ReadinessControllerTest {
@Mock
private CmpServersConfig cmpServersConfig;
@Test
@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);
// Given
Mockito.when(cmpServersConfig.isReady()).thenReturn(true);
// Then
assertThat(new ReadinessController(cmpServersConfig).checkReady().getStatusCode()).isEqualTo(HttpStatus.OK);
- public void shouldReturnStatusServiceUnavailableWhenConfigIsNotReady() {
+ void shouldReturnStatusServiceUnavailableWhenConfigIsNotReady() {
// Given
Mockito.when(cmpServersConfig.isReady()).thenReturn(false);
// Then
assertThat(new ReadinessController(cmpServersConfig).checkReady().getStatusCode()).isEqualTo(HttpStatus.SERVICE_UNAVAILABLE);
// Given
Mockito.when(cmpServersConfig.isReady()).thenReturn(false);
// Then
assertThat(new ReadinessController(cmpServersConfig).checkReady().getStatusCode()).isEqualTo(HttpStatus.SERVICE_UNAVAILABLE);