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

import org.junit.Test;
import org.traccar.ProtocolTest;

public class TelemaxProtocolDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        TelemaxProtocolDecoder decoder = new TelemaxProtocolDecoder(new TelemaxProtocol());

        verifyNull(decoder, text(
                "%067374070128"));

        verifyPositions(decoder, text(
                "Y000007C6999999067374074649003C00A7018074666F60D66818051304321900000000C5"));

    }

}