Skip to content

Commit 15e1055

Browse files
Material Design Teamikim24
authored andcommitted
Migrate org.mockito.Matchers#any* to org.mockito.ArgumentMatchers
The former is deprecated and replaced by the latter in Mockito 2. However, there is a functional difference: ArgumentMatchers will reject `null` and check the type if the matcher specified a type (e.g. `any(Class)` or `anyInt()`). `any()` will remain to accept anything. PiperOrigin-RevId: 257198335
1 parent 17a2079 commit 15e1055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/javatests/com/google/android/material/shape/MaterialShapeDrawableDrawTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.google.android.material.shape;
1818

1919
import static org.junit.Assert.assertFalse;
20-
import static org.mockito.Matchers.any;
20+
import static org.mockito.ArgumentMatchers.any;
2121
import static org.mockito.Mockito.mock;
2222
import static org.mockito.Mockito.verify;
2323

0 commit comments

Comments
 (0)