diff options
author | Anton Tananaev <anton@traccar.org> | 2023-03-06 11:32:57 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-03-06 11:32:57 -0800 |
commit | 785933bc74b2530ed36b4d5fae364284e28cf5d9 (patch) | |
tree | e981d9fe51b5d292c1fb530658675c79d8dd43c4 | |
parent | 3feb9c15e32c619cd94e7a58b79cd54001751a45 (diff) | |
download | trackermap-server-785933bc74b2530ed36b4d5fae364284e28cf5d9.tar.gz trackermap-server-785933bc74b2530ed36b4d5fae364284e28cf5d9.tar.bz2 trackermap-server-785933bc74b2530ed36b4d5fae364284e28cf5d9.zip |
Upgrade mockito version
-rw-r--r-- | build.gradle | 2 | ||||
-rw-r--r-- | src/test/java/org/traccar/BaseTest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle index a9f9f07cd..b27403861 100644 --- a/build.gradle +++ b/build.gradle @@ -88,7 +88,7 @@ dependencies { implementation "com.google.firebase:firebase-admin:9.1.1" testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion" testImplementation "org.junit.jupiter:junit-jupiter-engine:$junitVersion" - testImplementation "org.mockito:mockito-core:4.+" + testImplementation "org.mockito:mockito-core:5.1.1" } test { diff --git a/src/test/java/org/traccar/BaseTest.java b/src/test/java/org/traccar/BaseTest.java index c784150dd..2ace781f3 100644 --- a/src/test/java/org/traccar/BaseTest.java +++ b/src/test/java/org/traccar/BaseTest.java @@ -32,7 +32,7 @@ public class BaseTest { decoder.setCacheManager(cacheManager); var connectionManager = mock(ConnectionManager.class); var uniqueIdsProvided = new HashSet<Boolean>(); - when(connectionManager.getDeviceSession(any(), any(), any(), any())).thenAnswer(invocation -> { + when(connectionManager.getDeviceSession(any(), any(), any(), any(String[].class))).thenAnswer(invocation -> { var mock = new DeviceSession(1L, "", mock(Protocol.class), mock(Channel.class), mock(SocketAddress.class)); if (uniqueIdsProvided.isEmpty()) { if (invocation.getArguments().length > 3) { |