import static com.google.common.truth.Truth.assertThat;
import static org.awaitility.Awaitility.await;
-import static org.mockito.Matchers.any;
-import static org.mockito.Matchers.anyBoolean;
-import static org.mockito.Matchers.anyCollection;
-import static org.mockito.Matchers.anyLong;
-import static org.mockito.Matchers.eq;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.anyBoolean;
+import static org.mockito.ArgumentMatchers.anyCollection;
+import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.doAnswer;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
}
- @SuppressWarnings("unchecked")
private void checkAdd(NextAction nextAction) throws TransactionCommitFailedException {
DataBroker spiedDataBroker = spy(db);
assertThat(updated.get()).isFalse();
}
- @SuppressWarnings("unchecked")
@Test
public void testChangeCallbackOccursImmediatelyAfterRegistration() {
ScheduledExecutorService mockScheduler = mock(ScheduledExecutorService.class);