aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/NetProtocolDecoderTest.java
blob: 9ab4aea4f6a2fd62111498df02e1fece87235127 (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.Test;
import org.traccar.ProtocolTest;

public class NetProtocolDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        var decoder = new NetProtocolDecoder(null);

        verifyPosition(decoder, text(
                "@L03686090604017761712271020161807037078881037233751000000010F850036980A4000"));

        verifyPosition(decoder, text(
                "@L0368609060401776171223102005072803703296103721462100008009000000300B12B000"));

    }

}