diff options
author | Anton Tananaev <anton@traccar.org> | 2024-02-19 11:53:08 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-02-19 11:53:14 -0800 |
commit | efd9e261791942334dbf4a911883a1b2b791f282 (patch) | |
tree | 8aa830282cd64b9b3a28e858865a8783b1eea3bc /src/test/java/org/traccar/BaseTest.java | |
parent | 26548bb534de6c9944ece5a2aa5216da83cb8819 (diff) | |
download | trackermap-server-efd9e261791942334dbf4a911883a1b2b791f282.tar.gz trackermap-server-efd9e261791942334dbf4a911883a1b2b791f282.tar.bz2 trackermap-server-efd9e261791942334dbf4a911883a1b2b791f282.zip |
Streamline model name access
Diffstat (limited to 'src/test/java/org/traccar/BaseTest.java')
-rw-r--r-- | src/test/java/org/traccar/BaseTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/org/traccar/BaseTest.java b/src/test/java/org/traccar/BaseTest.java index 2ace781f3..ce19d8ace 100644 --- a/src/test/java/org/traccar/BaseTest.java +++ b/src/test/java/org/traccar/BaseTest.java @@ -33,7 +33,8 @@ public class BaseTest { var connectionManager = mock(ConnectionManager.class); var uniqueIdsProvided = new HashSet<Boolean>(); 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)); + var mock = new DeviceSession( + 1L, "", null, mock(Protocol.class), mock(Channel.class), mock(SocketAddress.class)); if (uniqueIdsProvided.isEmpty()) { if (invocation.getArguments().length > 3) { uniqueIdsProvided.add(true); |