aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/NavtelecomProtocolDecoderTest.java
blob: be51cb852c1763a379feea76053a2a6a399080d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.traccar.protocol;

import org.junit.Test;
import org.traccar.ProtocolTest;

public class NavtelecomProtocolDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        var decoder = new NavtelecomProtocolDecoder(null);

        verifyNull(decoder, binary(
                "404e5443010000000000000013004e452a3e533a383636373935303331343130363839"));

        verifyNull(decoder, binary(
                "404e544301000000000000001300f7fc2a3e464c4558b00a0a45fffe00000000000000"));

        verifyNull(decoder, binary(
                "404e544301000000000000001300cbc02a3e464c4558b00a0a45fffe300a0e08000000"));

    }

}