diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-08 22:38:11 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-08 22:38:11 +1300 |
commit | f727af19cb994517ca3685239e506ff6beeaaa76 (patch) | |
tree | 9982219ba18de0d6f1b0ca0bb209bd0d34110a14 /test | |
parent | 3fa63631e2cb0c59aa2aa490a4ed742dd7153a8b (diff) | |
download | trackermap-server-f727af19cb994517ca3685239e506ff6beeaaa76.tar.gz trackermap-server-f727af19cb994517ca3685239e506ff6beeaaa76.tar.bz2 trackermap-server-f727af19cb994517ca3685239e506ff6beeaaa76.zip |
Set protocol name for all positions
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/ProtocolDecoderTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/org/traccar/ProtocolDecoderTest.java b/test/org/traccar/ProtocolDecoderTest.java index 95f00e5d1..12964049c 100644 --- a/test/org/traccar/ProtocolDecoderTest.java +++ b/test/org/traccar/ProtocolDecoderTest.java @@ -163,6 +163,8 @@ public class ProtocolDecoderTest { Assert.assertTrue("course >= 0", position.getCourse() >= 0); Assert.assertTrue("course <= 360", position.getCourse() <= 360); + Assert.assertNotNull("protocol is null", position.getProtocol()); + } private void verifyDecodedPosition(Object decodedObject) { @@ -192,6 +194,8 @@ public class ProtocolDecoderTest { Assert.assertTrue("course >= 0", position.getCourse() >= 0); Assert.assertTrue("course <= 360", position.getCourse() <= 360); + Assert.assertNotNull("protocol is null", position.getProtocol()); + } } |