diff options
author | hackerunet <hackerunet@gmail.com> | 2012-10-26 11:01:12 -0700 |
---|---|---|
committer | hackerunet <hackerunet@gmail.com> | 2012-10-26 11:01:12 -0700 |
commit | 534b62acef775a4590239cb96a227d138b262025 (patch) | |
tree | 973ed2df229c3539005a152c442d266ec73d9969 /test/org | |
parent | d9f2a13b3277486b99a9e796fac150bbb9443f9a (diff) | |
parent | 47274f73878ac429ac261cfbcba84c06c48fb547 (diff) | |
download | trackermap-server-534b62acef775a4590239cb96a227d138b262025.tar.gz trackermap-server-534b62acef775a4590239cb96a227d138b262025.tar.bz2 trackermap-server-534b62acef775a4590239cb96a227d138b262025.zip |
Merge pull request #1 from tananaev/master
New pull request from Anton last merge
Diffstat (limited to 'test/org')
-rw-r--r-- | test/org/traccar/protocol/ST210ProtocolDecoderTest.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/ST210ProtocolDecoderTest.java b/test/org/traccar/protocol/ST210ProtocolDecoderTest.java index 8b083bdcc..0a1b11e67 100644 --- a/test/org/traccar/protocol/ST210ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/ST210ProtocolDecoderTest.java @@ -13,6 +13,7 @@ public class ST210ProtocolDecoderTest { ST210ProtocolDecoder decoder = new ST210ProtocolDecoder( new TestDataManager(), 0); + //Status assertNotNull(decoder .decode(null, null, @@ -33,14 +34,21 @@ public class ST210ProtocolDecoderTest { .decode(null, null, "SA200STT;315198;042;20120809;13:43:34;4f310;-15.618709;-056.083223;000.025;000.00;8;1;49;12.10;100000;2;0231")); + //Emergency assertNotNull(decoder .decode(null, null, "SA200EMG;317652;042;20120718;15:35:41;16d41;-15.618740;-056.083252;000.034;000.00;8;1;41548;12.17;110000;1")); + //Alive assertNull(decoder .decode(null, null, "SA200ALV;317652")); + //Alert + assertNotNull(decoder + .decode(null, + null, + "SA200ALT;317652;042;20120829;14:25:58;16d41;-15.618770;-056.083242;000.029;000.00;0;0;2404240;0.00;000000;10")); } } |