diff options
Diffstat (limited to 'test/org/traccar/protocol/SyrusProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/SyrusProtocolDecoderTest.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/SyrusProtocolDecoderTest.java b/test/org/traccar/protocol/SyrusProtocolDecoderTest.java new file mode 100644 index 000000000..d8a704dff --- /dev/null +++ b/test/org/traccar/protocol/SyrusProtocolDecoderTest.java @@ -0,0 +1,22 @@ +package org.traccar.protocol; + +import static org.junit.Assert.assertNotNull; +import org.junit.Test; + +public class SyrusProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + SyrusProtocolDecoder decoder = new SyrusProtocolDecoder(null); + decoder.setDataManager(new TestDataManager()); + + assertNotNull(decoder.decode(null, null, + "\r\n>REV691615354941+3570173+1397742703203212;ID=Test")); + + assertNotNull(decoder.decode(null, null, + ">REV481599462982+2578391-0802945201228512;ID=Test")); + + } + +} |