|
26 | 26 | import static org.mockito.Mockito.mock;
|
27 | 27 | import static org.mockito.Mockito.times;
|
28 | 28 | import static org.mockito.Mockito.verify;
|
29 |
| -import static org.mockito.Mockito.verifyZeroInteractions; |
| 29 | +import static org.mockito.Mockito.verifyNoMoreInteractions; |
30 | 30 | import static org.mockito.Mockito.when;
|
31 | 31 | import static org.springframework.http.HttpStatus.BAD_GATEWAY;
|
32 | 32 | import static org.springframework.http.HttpStatus.BAD_REQUEST;
|
@@ -118,7 +118,7 @@ public void retriesRetryableHttpSeriesTillMaxAttemptsAndThrowsException() throws
|
118 | 118 | any(CanaryConfig.class),
|
119 | 119 | any(CanaryMetricConfig.class),
|
120 | 120 | any(CanaryScope.class));
|
121 |
| - verifyZeroInteractions(storageService); |
| 121 | + verifyNoMoreInteractions(storageService); |
122 | 122 | }
|
123 | 123 |
|
124 | 124 | @Test
|
@@ -198,7 +198,7 @@ public void doesNotRetryNonRetryableHttpStatusAndThrowsException() throws IOExce
|
198 | 198 | any(CanaryConfig.class),
|
199 | 199 | any(CanaryMetricConfig.class),
|
200 | 200 | any(CanaryScope.class));
|
201 |
| - verifyZeroInteractions(storageService); |
| 201 | + verifyNoMoreInteractions(storageService); |
202 | 202 | }
|
203 | 203 |
|
204 | 204 | @Test
|
@@ -226,7 +226,7 @@ public void retriesIoExceptionTillMaxAttemptsAndThrowsException() throws IOExcep
|
226 | 226 | any(CanaryConfig.class),
|
227 | 227 | any(CanaryMetricConfig.class),
|
228 | 228 | any(CanaryScope.class));
|
229 |
| - verifyZeroInteractions(storageService); |
| 229 | + verifyNoMoreInteractions(storageService); |
230 | 230 | }
|
231 | 231 |
|
232 | 232 | @Test
|
@@ -256,7 +256,7 @@ public void retriesNetworkErrorTillMaxAttemptsAndThrowsException() throws IOExce
|
256 | 256 | any(CanaryConfig.class),
|
257 | 257 | any(CanaryMetricConfig.class),
|
258 | 258 | any(CanaryScope.class));
|
259 |
| - verifyZeroInteractions(storageService); |
| 259 | + verifyNoMoreInteractions(storageService); |
260 | 260 | }
|
261 | 261 |
|
262 | 262 | private SpinnakerHttpException getSpinnakerHttpException(int status) {
|
|
0 commit comments