aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/WatchFrameDecoderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/org/traccar/protocol/WatchFrameDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/WatchFrameDecoderTest.java35
1 files changed, 0 insertions, 35 deletions
diff --git a/test/org/traccar/protocol/WatchFrameDecoderTest.java b/test/org/traccar/protocol/WatchFrameDecoderTest.java
deleted file mode 100644
index 4e40eea86..000000000
--- a/test/org/traccar/protocol/WatchFrameDecoderTest.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package org.traccar.protocol;
-
-import org.junit.Test;
-import org.traccar.ProtocolTest;
-
-public class WatchFrameDecoderTest extends ProtocolTest {
-
- @Test
- public void testDecode() throws Exception {
-
- WatchFrameDecoder decoder = new WatchFrameDecoder();
-
- verifyFrame(
- binary("5b33472a3335323636313039303134333135302a303030412a4c4b2c302c302c3130305d"),
- decoder.decode(null, null, binary("5b33472a3335323636313039303134333135302a303030412a4c4b2c302c302c3130305d")));
-
- verifyFrame(
- binary("5b33472a383330383430363237392a303030382a72636170747572655d"),
- decoder.decode(null, null, binary("5b33472a383330383430363237392a303030382a72636170747572655d")));
-
- verifyFrame(
- binary("5b33472a383330383430363237392a303030392a4c4b2c302c302c38345d"),
- decoder.decode(null, null, binary("5b33472a383330383430363237392a303030392a4c4b2c302c302c38345d")));
-
- verifyFrame(
- binary("5b5a4a2a3031343131313030313335303330342a303033342a303030392a4c4b2c302c302c31395d"),
- decoder.decode(null, null, binary("5b5a4a2a3031343131313030313335303330342a303033342a303030392a4c4b2c302c302c31395d")));
-
- verifyFrame(
- concatenateBuffers(buffer("[CS*1234567890*000e*TK,#!AMR"), binary("7d5b5d2c2aff"), buffer("]")),
- decoder.decode(null, null, concatenateBuffers(buffer("[CS*1234567890*000e*TK,#!AMR"), binary("7d017d027d037d047d05ff"), buffer("]"))));
-
- }
-
-}