aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java')
-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);
}