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

    @Test
    public void testDecode() throws Exception {

        var decoder = new Gs100ProtocolDecoder(null);

        verifyNull(decoder, binary(
                "474C490F383632343632303332353036373030133839333831303131363039313838343837323546084657312E302E3236"));

        verifyPositions(decoder, binary(
                "47440216900000064113030417020236402C452286650051929716900000064115030417020236408C4522866800379020"));

    }

}