From a9745c6b14a0b6f48e57b9055c0977d814b46e28 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 6 Jan 2021 22:32:04 -0800 Subject: Add new test cases --- src/test/java/org/traccar/protocol/AdmProtocolDecoderTest.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/test/java/org/traccar/protocol') diff --git a/src/test/java/org/traccar/protocol/AdmProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/AdmProtocolDecoderTest.java index 599dd6190..51e1e2bab 100644 --- a/src/test/java/org/traccar/protocol/AdmProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/AdmProtocolDecoderTest.java @@ -10,6 +10,12 @@ public class AdmProtocolDecoderTest extends ProtocolTest { AdmProtocolDecoder decoder = new AdmProtocolDecoder(null); + verifyNull(decoder, binary( + "000042033836393135333034323532333738340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000078")); + + verifyPosition(decoder, binary( + "00003728e000001402591d5f42e8711642f100000000df0007483223f35fe02eab0800000000000000004400000001000000000018000000003728e000001402591d5f42e8711642f100000000df0006496e23f35fe22e9a0800000000000000004400000001000000000017000000003728e000001402591d5f42e8711642f100000000df000748aa23f35fe22e4a07000000000000000043000100010000000000180000")); + verifyNull(decoder, binary( "010042033836313331313030323639343838320501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000073")); -- cgit v1.2.3