aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/RuptelaProtocolEncoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-12-02 21:35:36 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-12-02 21:35:36 -0800
commita379356a52cddbd942cee2dfdf87614adba4aa63 (patch)
tree90eb7b51fc0d0c5261d54b9ed1a6cc6b9d2a7358 /src/test/java/org/traccar/protocol/RuptelaProtocolEncoderTest.java
parent8a918e12f4a899a4ffdb67c58d57daefb94c5ab4 (diff)
downloadtrackermap-server-a379356a52cddbd942cee2dfdf87614adba4aa63.tar.gz
trackermap-server-a379356a52cddbd942cee2dfdf87614adba4aa63.tar.bz2
trackermap-server-a379356a52cddbd942cee2dfdf87614adba4aa63.zip
Handle binary custom commands
Diffstat (limited to 'src/test/java/org/traccar/protocol/RuptelaProtocolEncoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/RuptelaProtocolEncoderTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/java/org/traccar/protocol/RuptelaProtocolEncoderTest.java b/src/test/java/org/traccar/protocol/RuptelaProtocolEncoderTest.java
index 5868b07df..613a89b96 100644
--- a/src/test/java/org/traccar/protocol/RuptelaProtocolEncoderTest.java
+++ b/src/test/java/org/traccar/protocol/RuptelaProtocolEncoderTest.java
@@ -14,10 +14,13 @@ public class RuptelaProtocolEncoderTest extends ProtocolTest {
Command command = new Command();
command.setDeviceId(1);
command.setType(Command.TYPE_CUSTOM);
- command.set(Command.KEY_DATA, " Setio 2,1");
+ command.set(Command.KEY_DATA, " Setio 2,1");
verifyCommand(encoder, command, binary("000b6c20536574696F20322C31eb3e"));
+ command.set(Command.KEY_DATA, "000b890100000000007fffffff89f0");
+ verifyCommand(encoder, command, binary("000b890100000000007fffffff89f0"));
+
}
}