aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar
diff options
context:
space:
mode:
authorseym45 <seym45@gmail.com>2023-07-24 20:15:47 +0400
committerseym45 <seym45@gmail.com>2023-07-24 20:52:46 +0400
commit1ee9e9396d7274f057f5e6d2d69e72ec1a5c0135 (patch)
tree7383334559adc484a546713bcc51a843f985e8a9 /src/test/java/org/traccar
parent6cb4db1f6bb4f93ad42b013a38ace9a6a3b735f6 (diff)
downloadtrackermap-server-1ee9e9396d7274f057f5e6d2d69e72ec1a5c0135.tar.gz
trackermap-server-1ee9e9396d7274f057f5e6d2d69e72ec1a5c0135.tar.bz2
trackermap-server-1ee9e9396d7274f057f5e6d2d69e72ec1a5c0135.zip
Add method to encodeId
Diffstat (limited to 'src/test/java/org/traccar')
-rw-r--r--src/test/java/org/traccar/protocol/GatorProtocolEncoderTest.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/GatorProtocolEncoderTest.java b/src/test/java/org/traccar/protocol/GatorProtocolEncoderTest.java
new file mode 100644
index 000000000..7e8f51008
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/GatorProtocolEncoderTest.java
@@ -0,0 +1,19 @@
+package org.traccar.protocol;
+
+import org.junit.jupiter.api.Test;
+import org.traccar.ProtocolTest;
+import org.traccar.model.Command;
+
+import java.nio.charset.StandardCharsets;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+public class GatorProtocolEncoderTest extends ProtocolTest {
+
+ @Test
+ void encodeId() throws Exception {
+ var encoder = inject(new GatorProtocolEncoder(null));
+ assertEquals("2008958C", encoder.encodeId(13332082112L));
+
+ }
+}