aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/RecodaProtocolDecoderTest.java
blob: 668879787462a6df775b40b9aa37f6d7bc198b2f (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 RecodaProtocolDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        RecodaProtocolDecoder decoder = new RecodaProtocolDecoder(null);

        verifyNull(decoder, binary(
                "01100020480000000300000030393535360000000000000001000000303030303000000000000000000000000000000000000000006100004531313037353500ffffffffffff0000"));

        verifyNull(decoder, binary(
                "01200020100000000300000002000000"));

        verifyNull(decoder, binary(
                "0110000008000000"));

    }

}