@@ -94,7 +94,7 @@ public static void tearDown() {
9494 }
9595
9696 @ Test
97- public void should_update_info_for_online_with_info_endpoint_only () {
97+ void should_update_info_for_online_with_info_endpoint_only () {
9898 // given
9999 Registration registration = Registration .create ("foo" , this .wireMock .url ("/health" )).build ();
100100 Instance instance = Instance .create (InstanceId .of ("onl" ))
@@ -141,7 +141,7 @@ public void should_update_info_for_online_with_info_endpoint_only() {
141141 }
142142
143143 @ Test
144- public void should_clear_info_on_http_error () {
144+ void should_clear_info_on_http_error () {
145145 // given
146146 Instance instance = Instance .create (InstanceId .of ("onl" ))
147147 .register (Registration .create ("foo" , this .wireMock .url ("/health" )).build ())
@@ -167,8 +167,7 @@ public void should_clear_info_on_http_error() {
167167 }
168168
169169 @ Test
170- public void should_clear_info_on_exception () {
171- this .updater = new InfoUpdater (this .repository , InstanceWebClient .builder ().build (), this .apiMediaTypeHandler );
170+ void should_clear_info_on_exception () {
172171
173172 // given
174173 Instance instance = Instance .create (InstanceId .of ("onl" ))
@@ -178,7 +177,7 @@ public void should_clear_info_on_exception() {
178177 .withInfo (Info .from (singletonMap ("foo" , "bar" )));
179178 StepVerifier .create (this .repository .save (instance )).expectNextCount (1 ).verifyComplete ();
180179
181- this .wireMock .stubFor (get ("/info" ).willReturn (okJson ("{ \" foo\" : \" bar\" }" ).withFixedDelay (1500 )));
180+ this .wireMock .stubFor (get ("/info" ).willReturn (okJson ("{ \" foo\" : \" bar\" }" ).withFixedDelay (2100 )));
182181
183182 // when
184183 StepVerifier .create (this .eventStore )
@@ -195,7 +194,7 @@ public void should_clear_info_on_exception() {
195194 }
196195
197196 @ Test
198- public void should_retry () {
197+ void should_retry () {
199198 // given
200199 Registration registration = Registration .create ("foo" , this .wireMock .url ("/health" )).build ();
201200 Instance instance = Instance .create (InstanceId .of ("onl" ))
0 commit comments