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

import static org.junit.Assert.assertNotNull;
import org.junit.Test;

public class SyrusProtocolDecoderTest {

    @Test
    public void testDecode() throws Exception {

        SyrusProtocolDecoder decoder = new SyrusProtocolDecoder(null);
        decoder.setDataManager(new TestDataManager());

        assertNotNull(decoder.decode(null, null,
                "\r\n>REV691615354941+3570173+1397742703203212;ID=Test"));

        assertNotNull(decoder.decode(null, null,
                ">REV481599462982+2578391-0802945201228512;ID=Test"));

    }

}