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


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

public class TranSyncProtocolDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        var decoder = inject(new TranSyncProtocolDecoder(null));


        verifyPosition(decoder, binary(
                "3a3a2b583f086065705154043900801017050b11190f01623ef40887dff00000c25e9ff707000007152a2d0000000105004794916902050000000000050252ee060200822323"));

        verifyAttributes(decoder, binary(
                "3a3a2b583f086065705154043900801017050b11190f01623ef40887dff00000c25e9ff707000007152a2d0000000105004794916902050000000000050252ee060200822323")
                );
    }
}