From 67a63c5ecf2b636db16c96efef078a0f210d7620 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 9 Jun 2016 13:57:12 +1200 Subject: Change protocol name to correct one --- .../traccar/protocol/IdplProtocolDecoderTest.java | 22 ++++++++++++++++++++++ .../traccar/protocol/LdplProtocolDecoderTest.java | 22 ---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 test/org/traccar/protocol/IdplProtocolDecoderTest.java delete mode 100644 test/org/traccar/protocol/LdplProtocolDecoderTest.java (limited to 'test/org/traccar') diff --git a/test/org/traccar/protocol/IdplProtocolDecoderTest.java b/test/org/traccar/protocol/IdplProtocolDecoderTest.java new file mode 100644 index 000000000..4340ebc3d --- /dev/null +++ b/test/org/traccar/protocol/IdplProtocolDecoderTest.java @@ -0,0 +1,22 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class IdplProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + IdplProtocolDecoder decoder = new IdplProtocolDecoder(new IdplProtocol()); + + verifyPosition(decoder, text( + "*ID1,863071011086474,210314,153218,A,1831.4577,N,07351.1433,E,0.79,240.64,9,20,A,1,4.20,0,1,01,1,0,0,A01,R,935D#"), + position("2014-03-21 15:32:18.000", true, 18.524295, 73.852388333333)); + + verifyPosition(decoder, text( + "*ID1,863071011086474,210314,162752,A,1831.4412,N,07351.0983,E,0.04,213.84,9,25,A,1,4.20,0,1,01,1,0,0,A01,L,EA01#")); + + } + +} diff --git a/test/org/traccar/protocol/LdplProtocolDecoderTest.java b/test/org/traccar/protocol/LdplProtocolDecoderTest.java deleted file mode 100644 index bfe196b81..000000000 --- a/test/org/traccar/protocol/LdplProtocolDecoderTest.java +++ /dev/null @@ -1,22 +0,0 @@ -package org.traccar.protocol; - -import org.junit.Test; -import org.traccar.ProtocolTest; - -public class LdplProtocolDecoderTest extends ProtocolTest { - - @Test - public void testDecode() throws Exception { - - LdplProtocolDecoder decoder = new LdplProtocolDecoder(new LdplProtocol()); - - verifyPosition(decoder, text( - "*ID1,863071011086474,210314,153218,A,1831.4577,N,07351.1433,E,0.79,240.64,9,20,A,1,4.20,0,1,01,1,0,0,A01,R,935D#"), - position("2014-03-21 15:32:18.000", true, 18.524295, 73.852388333333)); - - verifyPosition(decoder, text( - "*ID1,863071011086474,210314,162752,A,1831.4412,N,07351.0983,E,0.04,213.84,9,25,A,1,4.20,0,1,01,1,0,0,A01,L,EA01#")); - - } - -} -- cgit v1.2.3