diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2011-06-09 08:50:44 +0000 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2011-06-09 08:50:44 +0000 |
commit | dcbaac71303e606662c8274d5b936fd8323a01b0 (patch) | |
tree | a1c4df652cb7a654415a713f806f8fe6ef90c46d /test/net/sourceforge/opentracking/protocol | |
parent | d673fa357b64ffa34209465a535d00983cba5576 (diff) | |
download | traccar-server-dcbaac71303e606662c8274d5b936fd8323a01b0.tar.gz traccar-server-dcbaac71303e606662c8274d5b936fd8323a01b0.tar.bz2 traccar-server-dcbaac71303e606662c8274d5b936fd8323a01b0.zip |
Diffstat (limited to 'test/net/sourceforge/opentracking/protocol')
-rw-r--r-- | test/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoderTest.java | 3 | ||||
-rw-r--r-- | test/net/sourceforge/opentracking/protocol/tk103/Tk103ProtocolDecoderTest.java | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/test/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoderTest.java b/test/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoderTest.java index 1372c1c2c..895cbb534 100644 --- a/test/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoderTest.java +++ b/test/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoderTest.java @@ -41,7 +41,8 @@ public class Gps103ProtocolDecoderTest { String testMsg1 = "##,imei:10000000000000,A"; // NEW MESSAGE: imei:359587017470280,tracker,0000000000,03184511405,L,; - String testMsg2 = "imei:10000000000000,help me,1004171910,,F,010203.000,A,0102.0003,N,00102.0003,E,1.02,"; + String testMsg2 = //"imei:10000000000000,help me,1004171910,,F,010203.000,A,0102.0003,N,00102.0003,E,1.02,"; + "imei:353451040164707,tracker,1105182344,+36304665439,F,214418.000,A,4804.2222,N,01916.7593,E,0.37,"; Gps103ProtocolDecoder decoder = new Gps103ProtocolDecoder(new TestDataManager(), 0); //assertNull(decoder.decode(null, null, testMsg1)); diff --git a/test/net/sourceforge/opentracking/protocol/tk103/Tk103ProtocolDecoderTest.java b/test/net/sourceforge/opentracking/protocol/tk103/Tk103ProtocolDecoderTest.java index a94657c04..e318fe5fb 100644 --- a/test/net/sourceforge/opentracking/protocol/tk103/Tk103ProtocolDecoderTest.java +++ b/test/net/sourceforge/opentracking/protocol/tk103/Tk103ProtocolDecoderTest.java @@ -31,7 +31,7 @@ public class Tk103ProtocolDecoderTest { @Test public void testDecode() throws Exception { - String testMsg1 = "(035988863964BP05000035988863964110430A4241.8399N02318.8131E000.0110112311.8310000000L00000094"; + String testMsg1 = "(035988863964BP05000035988863964110524A4241.7977N02318.7561E000.0123536356.5100000000L000946BB"; Tk103ProtocolDecoder decoder = new Tk103ProtocolDecoder(new TestDataManager(), 0); Position position = (Position) decoder.decode(null, null, testMsg1); |