diff options
Diffstat (limited to 'android/guava-tests/test/com/google/common/collect/ForwardingMapTest.java')
-rw-r--r-- | android/guava-tests/test/com/google/common/collect/ForwardingMapTest.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/android/guava-tests/test/com/google/common/collect/ForwardingMapTest.java b/android/guava-tests/test/com/google/common/collect/ForwardingMapTest.java index 6ca5b8cc1..cc5d73967 100644 --- a/android/guava-tests/test/com/google/common/collect/ForwardingMapTest.java +++ b/android/guava-tests/test/com/google/common/collect/ForwardingMapTest.java @@ -17,7 +17,7 @@ package com.google.common.collect; import static java.lang.reflect.Modifier.STATIC; -import static org.mockito.Mockito.anyObject; +import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.atLeast; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; @@ -231,10 +231,10 @@ public class ForwardingMapTest extends TestCase { // These are the methods specified by StandardEntrySet verify(map, atLeast(0)).clear(); - verify(map, atLeast(0)).containsKey(anyObject()); - verify(map, atLeast(0)).get(anyObject()); + verify(map, atLeast(0)).containsKey(any()); + verify(map, atLeast(0)).get(any()); verify(map, atLeast(0)).isEmpty(); - verify(map, atLeast(0)).remove(anyObject()); + verify(map, atLeast(0)).remove(any()); verify(map, atLeast(0)).size(); verifyNoMoreInteractions(map); } @@ -259,9 +259,9 @@ public class ForwardingMapTest extends TestCase { // These are the methods specified by StandardKeySet verify(map, atLeast(0)).clear(); - verify(map, atLeast(0)).containsKey(anyObject()); + verify(map, atLeast(0)).containsKey(any()); verify(map, atLeast(0)).isEmpty(); - verify(map, atLeast(0)).remove(anyObject()); + verify(map, atLeast(0)).remove(any()); verify(map, atLeast(0)).size(); verify(map, atLeast(0)).entrySet(); verifyNoMoreInteractions(map); @@ -287,7 +287,7 @@ public class ForwardingMapTest extends TestCase { // These are the methods specified by StandardValues verify(map, atLeast(0)).clear(); - verify(map, atLeast(0)).containsValue(anyObject()); + verify(map, atLeast(0)).containsValue(any()); verify(map, atLeast(0)).isEmpty(); verify(map, atLeast(0)).size(); verify(map, atLeast(0)).entrySet(); |