mirror of
https://github.com/traccar/traccar.git
synced 2025-01-08 11:47:49 +08:00
Upgrade mockito version
This commit is contained in:
parent
3feb9c15e3
commit
785933bc74
@ -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 {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user