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

    @Test
    public void testDecode() throws Exception {

        var decoder = new EnnfuProtocolDecoder(null);

        verifyPosition(decoder, text(
                "Ennfu:354679095321652,041504.00,A,3154.86654,N,11849.08737,E,0.053,,080121,20,3.72,21.4,V0.01"));

        verifyPosition(decoder, text(
                "Ennfu:354679095321652,060951.00,A,3154.86786,N,11849.09042,E,0.058,,060121,17,4.0,86.8,V0.01"));

        verifyNull(decoder, text(
                "Ennfu:HeartBeat,354679095321652"));

    }

}