diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-10-09 11:44:24 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-10-09 11:44:24 -0700 |
commit | 11aec11f7a4d65f08fb32dd7604c4cbf8ee2e0de (patch) | |
tree | 235ac55896961274ab983c8a4ea08f51f0c3d140 /src/test | |
parent | 3c9db2f713de21292a1109004f141744b789a660 (diff) | |
download | trackermap-server-11aec11f7a4d65f08fb32dd7604c4cbf8ee2e0de.tar.gz trackermap-server-11aec11f7a4d65f08fb32dd7604c4cbf8ee2e0de.tar.bz2 trackermap-server-11aec11f7a4d65f08fb32dd7604c4cbf8ee2e0de.zip |
Support per device attributes
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/traccar/TestIdentityManager.java | 5 |
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 |