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

    @Test
    public void testDecode() throws Exception {

        var decoder = new HomtecsProtocolDecoder(null);

        verifyNull(decoder, text(
                "MDS0001_R6d1821f7,170323,143601.00,04,,,,,,,,,"));

        verifyPosition(decoder, text(
                "MDS0001_R6d1821f7,170323,143621.00,06,5105.29914,N,11400.52675,W,0.223,198.41,1,2.12,1042.3"));

        verifyPosition(decoder, text(
                "strommabus939_R01272028,160217,191003.00,06,5540.12292,N,01237.49814,E,0.391,,1,1.27,1.2"));

    }

}