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

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

public class DualcamFrameDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        var decoder = inject(new DualcamFrameDecoder());

        verifyFrame(
                binary("000000050001403a4abaa31444000400"),
                decoder.decode(null, null, binary("000000050001403a4abaa31444000400")));

        verifyFrame(
                binary("00010006000000110000"),
                decoder.decode(null, null, binary("00010006000000110000")));

    }

}