diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-12 12:28:28 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-12 12:28:28 +1200 |
commit | 639b427eba5738534c10f591e285d707e8b060e5 (patch) | |
tree | bdafa0f9751c77561ade92ebed272b6d6545ea43 /test/org/traccar/protocol/GoSafeProtocolDecoderTest.java | |
parent | 2badcd16f7ae0ce46f7c0cd241c635493d7e6508 (diff) | |
download | trackermap-server-639b427eba5738534c10f591e285d707e8b060e5.tar.gz trackermap-server-639b427eba5738534c10f591e285d707e8b060e5.tar.bz2 trackermap-server-639b427eba5738534c10f591e285d707e8b060e5.zip |
Re-factor decoder interface
Diffstat (limited to 'test/org/traccar/protocol/GoSafeProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/GoSafeProtocolDecoderTest.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java b/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java index 7c63c0b56..c1a204b3c 100644 --- a/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java +++ b/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java @@ -1,9 +1,8 @@ package org.traccar.protocol; -import org.traccar.helper.TestIdentityManager; -import static org.traccar.helper.DecoderVerifier.verify; import static org.junit.Assert.assertNull; import org.junit.Test; +import static org.traccar.helper.DecoderVerifier.verify; public class GoSafeProtocolDecoderTest extends ProtocolDecoderTest { @@ -12,10 +11,10 @@ public class GoSafeProtocolDecoderTest extends ProtocolDecoderTest { GoSafeProtocolDecoder decoder = new GoSafeProtocolDecoder(new GoSafeProtocol()); - assertNull(decoder.decode(null, null, null, + assertNull(decoder.decode(null, null, "*GS16,351535058709775")); - verify(decoder.decode(null, null, null, + verify(decoder.decode(null, null, "*GS16,351535058709775,100356130215,,SYS:G79W;V1.06;V1.0.2,GPS:A;6;N24.802700;E46.616828;0;0;684;1.35,COT:60,ADC:4.31;0.10,DTT:20000;;0;0;0;1")); } |