aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/FlextrackProtocolDecoderTest.java
blob: 126e8799d9a1a71721509baf5225f369d52c2b85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package org.traccar.protocol;

import org.junit.Test;

import static org.junit.Assert.assertNull;
import static org.traccar.helper.DecoderVerifier.verify;

public class FlextrackProtocolDecoderTest extends ProtocolDecoderTest {

    @Test
    public void testDecode() throws Exception {

        FlextrackProtocolDecoder decoder = new FlextrackProtocolDecoder(new FlextrackProtocol());

        assertNull(decoder.decode(null, null,
                "-1,LOGON,7000000123,8945000000"));

        verify(decoder.decode(null, null,
                "-2,UNITSTAT,20050205,181923,7000004634,N55.46.0812,E009.21.1665,122,198,6,3934,-81,01A8,23802,213,55,37FD,45,0055,12878"));

    }

}