aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/Gps103ProtocolEncoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-01 11:56:39 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-01 11:56:39 +1200
commit362fb75ec0ff6f6c615f07abde917cb55da4de5c (patch)
treedf2986dd6d59765984812e3088d0819dcde3c707 /test/org/traccar/protocol/Gps103ProtocolEncoderTest.java
parent8b5f47fdcc9da07c9d4063cbb22b12ba26c78f58 (diff)
downloadtrackermap-server-362fb75ec0ff6f6c615f07abde917cb55da4de5c.tar.gz
trackermap-server-362fb75ec0ff6f6c615f07abde917cb55da4de5c.tar.bz2
trackermap-server-362fb75ec0ff6f6c615f07abde917cb55da4de5c.zip
Add specific other field setters
Diffstat (limited to 'test/org/traccar/protocol/Gps103ProtocolEncoderTest.java')
-rw-r--r--test/org/traccar/protocol/Gps103ProtocolEncoderTest.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/org/traccar/protocol/Gps103ProtocolEncoderTest.java b/test/org/traccar/protocol/Gps103ProtocolEncoderTest.java
index 1fd93ede4..9274c1a26 100644
--- a/test/org/traccar/protocol/Gps103ProtocolEncoderTest.java
+++ b/test/org/traccar/protocol/Gps103ProtocolEncoderTest.java
@@ -1,7 +1,5 @@
package org.traccar.protocol;
-import java.util.HashMap;
-import java.util.Map;
import org.junit.Assert;
import org.junit.Test;
import org.traccar.model.Command;
@@ -16,11 +14,7 @@ public class Gps103ProtocolEncoderTest {
Command command = new Command();
command.setDeviceId(1);
command.setType(Command.TYPE_POSITION_PERIODIC);
-
- Map<String, Object> other = new HashMap<>();
- other.put(Command.KEY_FREQUENCY, 300l);
-
- command.setOther(other);
+ command.set(Command.KEY_FREQUENCY, 300);
Assert.assertEquals("**,imei:123456789012345,C,05m;", encoder.encodeCommand(command));