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

    @Test
    public void testDecode() throws Exception {

        var decoder = new JpKorjarProtocolDecoder(null);

        verifyPosition(decoder, text(
                "KORJAR.PL,329587014519383,160910144240,52.247254N,021.013375E,0.00,1,F:4.18V,1 260 01 794B 3517,"));

        verifyPosition(decoder, text(
                "KORJAR.PL,329587014519383,160910144240,52.895515N,021.949151E,6.30,212,F:3.94V,0 260 01 794B 3519,"));

        verifyPosition(decoder, text(
                "KORJAR.PL,329587014519383,160910144240,52.895596N,021.949343E,12.46,087,L:2.18V,1 260 01 794B 3517,"));

    }

}