aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-07-01 16:11:52 -0700
committerAnton Tananaev <anton@traccar.org>2023-07-01 16:11:52 -0700
commit18ee50d2b0ddd75328a1c43fff21be5a4f11910d (patch)
tree1043c42a12d628e9fd54fc839ac125d25d5091cf /src/test/java/org
parent914cc6e85ba8696727edff2d8a600ae695bc410d (diff)
downloadtrackermap-server-18ee50d2b0ddd75328a1c43fff21be5a4f11910d.tar.gz
trackermap-server-18ee50d2b0ddd75328a1c43fff21be5a4f11910d.tar.bz2
trackermap-server-18ee50d2b0ddd75328a1c43fff21be5a4f11910d.zip
Fix unit tests
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/traccar/handler/FilterHandlerTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/handler/FilterHandlerTest.java b/src/test/java/org/traccar/handler/FilterHandlerTest.java
index 14037f723..36bb84f19 100644
--- a/src/test/java/org/traccar/handler/FilterHandlerTest.java
+++ b/src/test/java/org/traccar/handler/FilterHandlerTest.java
@@ -29,6 +29,7 @@ public class FilterHandlerTest extends BaseTest {
when(config.getBoolean(Keys.FILTER_ENABLE)).thenReturn(true);
var cacheManager = mock(CacheManager.class);
when(cacheManager.getConfig()).thenReturn(config);
+ when(cacheManager.getObject(any(), anyLong())).thenReturn(mock(Device.class));
passingHandler = new FilterHandler(config, cacheManager, null, null);
}