Skip to content

Commit

Permalink
replace Matchers; ArgumentMatchers
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Sep 13, 2023
1 parent abc14f9 commit 5d27ab7
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ public void setUp() throws Exception {
});

MockitoAnnotations.initMocks(this);
when(mockBackend.bulkInsert(anyString(), anyString(), Matchers.<List<Map<String, String>>>any())).thenReturn(null);
when(mockBackend.bulkInsert(anyString(), anyString(), ArgumentMatchers.<List<Map<String, String>>>any())).thenReturn(null);
}

/**
Expand All @@ -467,7 +467,7 @@ public void testStartAndStopInternalWithoutCache() {
sink.startInternal();

try {
verify(mockBackend, times(0)).bulkInsert(anyString(), anyString(), Matchers.<List<Map<String, String>>>any());
verify(mockBackend, times(0)).bulkInsert(anyString(), anyString(), ArgumentMatchers.<List<Map<String, String>>>any());
} catch (Exception e) {
fail(e.getMessage());
}
Expand Down Expand Up @@ -503,7 +503,7 @@ public void testStartAndStopInternalWithCache() {
sink.startInternal();

try {
verify(mockBackend, times(0)).bulkInsert(anyString(), anyString(), Matchers.<List<Map<String, String>>>any());
verify(mockBackend, times(0)).bulkInsert(anyString(), anyString(), ArgumentMatchers.<List<Map<String, String>>>any());
} catch (Exception e) {
fail(e.getMessage());
}
Expand All @@ -516,7 +516,7 @@ public void testStartAndStopInternalWithCache() {
}
sink.setAggregations(aggregations);
try {
verify(mockBackend, times(0)).bulkInsert(anyString(), anyString(), Matchers.<List<Map<String, String>>>any());
verify(mockBackend, times(0)).bulkInsert(anyString(), anyString(), ArgumentMatchers.<List<Map<String, String>>>any());
} catch (Exception e) {
fail(e.getMessage());
}
Expand Down Expand Up @@ -725,7 +725,7 @@ public void setUp() throws Exception {
false, null);

MockitoAnnotations.initMocks(this);
when(mockBackend.bulkInsert(anyString(), anyString(), Matchers.<List<Map<String, String>>>any())).thenReturn(null);
when(mockBackend.bulkInsert(anyString(), anyString(), ArgumentMatchers.<List<Map<String, String>>>any())).thenReturn(null);
} // setUp

@Ignore
Expand Down Expand Up @@ -767,7 +767,7 @@ public void testPersistBatchWithoutData() {

try {
sink.persistBatch(null);
verify(mockBackend, times(0)).bulkInsert(anyString(), anyString(), Matchers.<List<Map<String, String>>>any());
verify(mockBackend, times(0)).bulkInsert(anyString(), anyString(), ArgumentMatchers.<List<Map<String, String>>>any());
} catch (Exception e) {
fail(e.getMessage());
}
Expand Down

0 comments on commit 5d27ab7

Please sign in to comment.