aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/AuroProtocolDecoderTest.java
blob: d2ef74c0215d4d8f3feb6dc4142e9f10177fd181 (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.jupiter.api.Test;
import org.traccar.ProtocolTest;

public class AuroProtocolDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

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

        verifyPosition(decoder, text(
                "M0028T0000816398975I357325031465123E00001W*****110620150437000068DA#RD01DA240000000001+100408425+013756121100620152137231112240330004400"));

        verifyPosition(decoder, text(
                "M0029T0000816398975I357325031465123E00001W*****110620150439000068DA#RD01DA240000000001+100407886+013755936100620152138221952123100003400"));

        verifyPosition(decoder, text(
                "M0030T0000816398975I357325031465123E00001W*****110620150441000068DA#RD01DA240000000000+100408391+013756125100620152140102362238320034400"));

    }

}