diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-13 09:41:37 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-13 09:41:37 +1300 |
commit | 0bbf4169c0b0ebd0cc5797d756350f7a7e57831a (patch) | |
tree | e3552808edc064c1d5b2dfb1adf06023c7d0b9fa /test | |
parent | 4e05ed1fe9a3de0ac16e4a03970a1b38a2bda318 (diff) | |
download | traccar-server-0bbf4169c0b0ebd0cc5797d756350f7a7e57831a.tar.gz traccar-server-0bbf4169c0b0ebd0cc5797d756350f7a7e57831a.tar.bz2 traccar-server-0bbf4169c0b0ebd0cc5797d756350f7a7e57831a.zip |
Add new format to Totem frame decoder
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/protocol/TotemFrameDecoderTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/TotemFrameDecoderTest.java b/test/org/traccar/protocol/TotemFrameDecoderTest.java index 2032dbc38..4fd2f86fb 100644 --- a/test/org/traccar/protocol/TotemFrameDecoderTest.java +++ b/test/org/traccar/protocol/TotemFrameDecoderTest.java @@ -12,6 +12,10 @@ public class TotemFrameDecoderTest extends ProtocolTest { TotemFrameDecoder decoder = new TotemFrameDecoder(); Assert.assertEquals( + binary("24243031303841413836343234343032363036333433377c3141303030303030313430313031303130313031343131313030303032374241304535373030333130303030303030302e3030303030303030303030302e303030304e30303030302e3030303045303438313536"), + decoder.decode(null, null, binary("24243031303841413836343234343032363036333433377c3141303030303030313430313031303130313031343131313030303032374241304535373030333130303030303030302e3030303030303030303030302e303030304e30303030302e3030303045303438313536"))); + + Assert.assertEquals( binary("242442393335363839353033373537383531387c4141244750524d432c3036313730382e3030302c412c333734302e323033332c4e2c30323132382e383132312c452c33382e38352c3237322e33362c3132313131332c2c2c412a35327c30322e337c30312e337c30312e397c3030303030303030303030307c32303133313131323036313730387c31343034313430327c30303030303030307c30303245323137317c303030307c302e323137327c383930327c34463945"), decoder.decode(null, null, binary("242442393335363839353033373537383531387c4141244750524d432c3036313730382e3030302c412c333734302e323033332c4e2c30323132382e383132312c452c33382e38352c3237322e33362c3132313131332c2c2c412a35327c30322e337c30312e337c30312e397c3030303030303030303030307c32303133313131323036313730387c31343034313430327c30303030303030307c30303245323137317c303030307c302e323137327c383930327c344639450d0a"))); |