aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-10-09 11:44:24 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-10-09 11:44:24 -0700
commit11aec11f7a4d65f08fb32dd7604c4cbf8ee2e0de (patch)
tree235ac55896961274ab983c8a4ea08f51f0c3d140 /src/test/java/org
parent3c9db2f713de21292a1109004f141744b789a660 (diff)
downloadtrackermap-server-11aec11f7a4d65f08fb32dd7604c4cbf8ee2e0de.tar.gz
trackermap-server-11aec11f7a4d65f08fb32dd7604c4cbf8ee2e0de.tar.bz2
trackermap-server-11aec11f7a4d65f08fb32dd7604c4cbf8ee2e0de.zip
Support per device attributes
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/traccar/TestIdentityManager.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/java/org/traccar/TestIdentityManager.java b/src/test/java/org/traccar/TestIdentityManager.java
index af5dd22df..7d2865e74 100644
--- a/src/test/java/org/traccar/TestIdentityManager.java
+++ b/src/test/java/org/traccar/TestIdentityManager.java
@@ -53,7 +53,10 @@ public final class TestIdentityManager implements IdentityManager {
@Override
public String lookupAttributeString(
long deviceId, String attributeName, String defaultValue, boolean lookupServer, boolean lookupConfig) {
- return "alarm,result";
+ if (attributeName.equals("filter.skipAttributes")) {
+ return "alarm,result";
+ }
+ return defaultValue;
}
@Override