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

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

public class VnetProtocolDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

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

        verifyNull(decoder, binary(
                "24240000140029111909062986818303379282604c452e322e30302ea32b020f0000d3552323"));

        verifyPosition(decoder, binary(
                "242433001200290615174213211489861061060690070B0001020304700005001E382323"));

    }

}