diff --git a/build.gradle b/build.gradle index 1051e5a721..232a54e522 100644 --- a/build.gradle +++ b/build.gradle @@ -26,7 +26,7 @@ buildscript { tink_version = '1.5.0' junit_version = '4.13.2' - mockitoVersion = '3.12.4' + mockitoVersion = '4.1.0' dexmakerVersion = "1.2" retrofit2Version = '2.9.0' okhttp3Version = '4.9.0' diff --git a/wear/src/test/java/info/nightscout/androidaps/testing/mocks/BundleMock.java b/wear/src/test/java/info/nightscout/androidaps/testing/mocks/BundleMock.java index 8dd60e7ea3..47586d3597 100644 --- a/wear/src/test/java/info/nightscout/androidaps/testing/mocks/BundleMock.java +++ b/wear/src/test/java/info/nightscout/androidaps/testing/mocks/BundleMock.java @@ -1,15 +1,15 @@ package info.nightscout.androidaps.testing.mocks; -import static org.mockito.Matchers.any; -import static org.mockito.Matchers.anyBoolean; -import static org.mockito.Matchers.anyByte; -import static org.mockito.Matchers.anyChar; -import static org.mockito.Matchers.anyDouble; -import static org.mockito.Matchers.anyFloat; -import static org.mockito.Matchers.anyInt; -import static org.mockito.Matchers.anyLong; -import static org.mockito.Matchers.anyShort; -import static org.mockito.Matchers.anyString; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyBoolean; +import static org.mockito.ArgumentMatchers.anyByte; +import static org.mockito.ArgumentMatchers.anyChar; +import static org.mockito.ArgumentMatchers.anyDouble; +import static org.mockito.ArgumentMatchers.anyFloat; +import static org.mockito.ArgumentMatchers.anyInt; +import static org.mockito.ArgumentMatchers.anyLong; +import static org.mockito.ArgumentMatchers.anyShort; +import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.doAnswer; import static org.mockito.Mockito.when; diff --git a/wear/src/test/java/info/nightscout/androidaps/testing/mocks/IntentMock.java b/wear/src/test/java/info/nightscout/androidaps/testing/mocks/IntentMock.java index c1d0c5f529..5320ae56e8 100644 --- a/wear/src/test/java/info/nightscout/androidaps/testing/mocks/IntentMock.java +++ b/wear/src/test/java/info/nightscout/androidaps/testing/mocks/IntentMock.java @@ -1,7 +1,7 @@ package info.nightscout.androidaps.testing.mocks; -import static org.mockito.Matchers.any; -import static org.mockito.Matchers.anyString; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.doAnswer; import static org.mockito.Mockito.when;