aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-01-19 09:53:44 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-01-19 09:53:44 +1300
commit7483a35161bbaf1a940dd96d23969fde8f6b4d02 (patch)
tree97e4ffc270831c6e2c354634016cee41cb3c9521
parent8220a4f928841b872649367c536876b7d8dc6143 (diff)
downloadtraccar-server-7483a35161bbaf1a940dd96d23969fde8f6b4d02.tar.gz
traccar-server-7483a35161bbaf1a940dd96d23969fde8f6b4d02.tar.bz2
traccar-server-7483a35161bbaf1a940dd96d23969fde8f6b4d02.zip
Add new GoSafe protocol unit tests
-rw-r--r--test/org/traccar/protocol/GoSafeProtocolDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java b/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java
index 4f6547070..e4f20f6ba 100644
--- a/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java
@@ -10,6 +10,12 @@ public class GoSafeProtocolDecoderTest extends ProtocolTest {
GoSafeProtocolDecoder decoder = new GoSafeProtocolDecoder(new GoSafeProtocol());
+ verifyNothing(decoder, text(
+ "*GS02,358696043774648"));
+
+ verifyNothing(decoder, text(
+ "*GS02,358696043774648,GPS:230040;A;S1.166829;E36.934287;0;0;170116,STT:20;0,MGR:32755204,ADC:0;11.2;1;28.3;2;4.1,GFS:0;0"));
+
verifyPositions(decoder, text(
"*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"));