From 2ad522b24213fc04e88329978001d3c95fef9070 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 25 Sep 2013 18:57:04 +1200 Subject: Add test cases --- test/org/traccar/protocol/MeitrackProtocolDecoderTest.java | 3 +++ test/org/traccar/protocol/V680ProtocolDecoderTest.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java b/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java index 982fb3514..e9b082951 100644 --- a/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java +++ b/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java @@ -28,6 +28,9 @@ public class MeitrackProtocolDecoderTest { assertNotNull(decoder.decode(null, null, "$$A141,012896005334567,AAA,35,-33.866543,151.190148,121209081758,A,6,27,0,16,1,48,65551,152784,505|2|0B5F|D9D3,0000,0000|0000|0000|0A39|0000,,*5B")); + + assertNotNull(decoder.decode(null, null, + "$$_128,861074020109479,AAA,34,22.512618,114.057065,090215000318,V,0,31,0,0,0,0,0,733,302|720|3EE4|BBB5,0000,0006|0006||028C|0000,*E3")); } diff --git a/test/org/traccar/protocol/V680ProtocolDecoderTest.java b/test/org/traccar/protocol/V680ProtocolDecoderTest.java index 6bddcfe4e..02f34d7ed 100644 --- a/test/org/traccar/protocol/V680ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/V680ProtocolDecoderTest.java @@ -50,6 +50,9 @@ public class V680ProtocolDecoderTest { assertNotNull(decoder.decode(null, null, "#135790246811222#13486119277#1#0000#SOS#1#27bc10af#11407.4182,E,2232.7632,N,0.00,79.50#070709#134147.000##")); + + /*assertNotNull(decoder.decode(null, null, + "#359094025419110#bigfriend#0#1234#AUTO#1##04632.8846,W,2327.2264,S,0.00,0.00#220913#234808##"));*/ } -- cgit v1.2.3