|
21 | 21 | import static org.junit.Assert.assertEquals; |
22 | 22 | import static org.junit.Assert.assertNotNull; |
23 | 23 | import static org.junit.Assert.assertNull; |
24 | | -import static org.mockito.ArgumentMatchers.anyInt; |
25 | | -import static org.mockito.ArgumentMatchers.eq; |
| 24 | +import static org.mockito.ArgumentMatchers.*; |
26 | 25 | import static org.mockito.Mockito.atLeastOnce; |
27 | 26 | import static org.mockito.Mockito.mock; |
28 | 27 | import static org.mockito.Mockito.never; |
@@ -156,8 +155,8 @@ public void whenStickyIsEnabledThenTheWorkflowIsCachedSignals() throws Exception |
156 | 155 | .build(); |
157 | 156 | Thread.sleep(600); |
158 | 157 | verify(reporter, atLeastOnce()) |
159 | | - .reportCounter(eq(MetricsType.STICKY_CACHE_HIT), eq(tags), anyInt()); |
160 | | - verify(reporter, never()).reportCounter(eq(MetricsType.STICKY_CACHE_MISS), eq(tags), anyInt()); |
| 158 | + .reportCounter(eq(MetricsType.STICKY_CACHE_HIT), eq(tags), anyLong()); |
| 159 | + verify(reporter, never()).reportCounter(eq(MetricsType.STICKY_CACHE_MISS), eq(tags), anyLong()); |
161 | 160 |
|
162 | 161 | // Finish Workflow |
163 | 162 | wrapper.close(); |
@@ -269,8 +268,8 @@ public void whenStickyIsEnabledThenTheWorkflowIsCachedActivities() throws Except |
269 | 268 | .put(MetricsTag.TASK_LIST, STICKY_TASK_LIST_METRIC_TAG) |
270 | 269 | .build(); |
271 | 270 | verify(reporter, atLeastOnce()) |
272 | | - .reportCounter(eq(MetricsType.STICKY_CACHE_HIT), eq(tags), anyInt()); |
273 | | - verify(reporter, never()).reportCounter(eq(MetricsType.STICKY_CACHE_MISS), eq(tags), anyInt()); |
| 271 | + .reportCounter(eq(MetricsType.STICKY_CACHE_HIT), eq(tags), anyLong()); |
| 272 | + verify(reporter, never()).reportCounter(eq(MetricsType.STICKY_CACHE_MISS), eq(tags), anyLong()); |
274 | 273 |
|
275 | 274 | // Finish Workflow |
276 | 275 | wrapper.close(); |
@@ -318,8 +317,8 @@ public void whenStickyIsEnabledThenTheWorkflowIsCachedChildWorkflows() throws Ex |
318 | 317 | .put(MetricsTag.TASK_LIST, STICKY_TASK_LIST_METRIC_TAG) |
319 | 318 | .build(); |
320 | 319 | verify(reporter, atLeastOnce()) |
321 | | - .reportCounter(eq(MetricsType.STICKY_CACHE_HIT), eq(tags), anyInt()); |
322 | | - verify(reporter, never()).reportCounter(eq(MetricsType.STICKY_CACHE_MISS), eq(tags), anyInt()); |
| 320 | + .reportCounter(eq(MetricsType.STICKY_CACHE_HIT), eq(tags), anyLong()); |
| 321 | + verify(reporter, never()).reportCounter(eq(MetricsType.STICKY_CACHE_MISS), eq(tags), anyLong()); |
323 | 322 | // Finish Workflow |
324 | 323 | wrapper.close(); |
325 | 324 | } |
@@ -374,8 +373,8 @@ public void whenStickyIsEnabledThenTheWorkflowIsCachedMutableSideEffect() throws |
374 | 373 | .put(MetricsTag.TASK_LIST, STICKY_TASK_LIST_METRIC_TAG) |
375 | 374 | .build(); |
376 | 375 | verify(reporter, atLeastOnce()) |
377 | | - .reportCounter(eq(MetricsType.STICKY_CACHE_HIT), eq(tags), anyInt()); |
378 | | - verify(reporter, never()).reportCounter(eq(MetricsType.STICKY_CACHE_MISS), eq(tags), anyInt()); |
| 376 | + .reportCounter(eq(MetricsType.STICKY_CACHE_HIT), eq(tags), anyLong()); |
| 377 | + verify(reporter, never()).reportCounter(eq(MetricsType.STICKY_CACHE_MISS), eq(tags), anyLong()); |
379 | 378 | // Finish Workflow |
380 | 379 | wrapper.close(); |
381 | 380 | } |
|
0 commit comments