From 9cc4cb27a5de80794f11a2e659ecde0e44bbb7b6 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 12 Sep 2015 21:45:59 +1200 Subject: Improve PT502 decoder pattern --- test/org/traccar/protocol/Pt502ProtocolDecoderTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/org/traccar') diff --git a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java index f012c8e8a..06740a271 100644 --- a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java @@ -1,8 +1,7 @@ package org.traccar.protocol; -import org.traccar.helper.TestIdentityManager; -import static org.traccar.helper.DecoderVerifier.verify; import org.junit.Test; +import static org.traccar.helper.DecoderVerifier.verify; public class Pt502ProtocolDecoderTest extends ProtocolDecoderTest { @@ -10,6 +9,9 @@ public class Pt502ProtocolDecoderTest extends ProtocolDecoderTest { public void testDecode() throws Exception { Pt502ProtocolDecoder decoder = new Pt502ProtocolDecoder(new Pt502Protocol()); + + verify(decoder.decode(null, null, + "$POS,216769295715,163237.000,A,3258.1738,S,02755.4350,E,0.00,215.88,100915,,,A/0000,0//232300//5b3/")); verify(decoder.decode(null, null, "$POS,11023456,033731.000,A,0335.2617,N,09841.1587,E,0.00,88.12,210615,,,A/0000,0/1f8/388900//f33//")); -- cgit v1.2.3