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

    @Test
    public void testDecode() throws Exception {

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

        verifyNull(decoder, binary(
                "81910b01ff"));

        verifyAttributes(decoder, binary(
                "81910c5a9031395533443630363631051e061a1e07397079712a000000000000413133333135332e333939304e30333531322e393837324530303031303030303000000200000000001f303036323236303030303030303030300000ffff"));

        verifyAttributes(decoder, binary(
                "81918c2d9e31395533443630363631041c0c16043030313030300007000000000000000000000000000000000000000000"));

    }

}