aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java
blob: c1a204b3cbf8d5c9d9f4cafe5099bd9955c33fd1 (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.assertNull;
import org.junit.Test;
import static org.traccar.helper.DecoderVerifier.verify;

public class GoSafeProtocolDecoderTest extends ProtocolDecoderTest {

    @Test
    public void testDecode() throws Exception {

        GoSafeProtocolDecoder decoder = new GoSafeProtocolDecoder(new GoSafeProtocol());

        assertNull(decoder.decode(null, null,
                "*GS16,351535058709775"));

        verify(decoder.decode(null, null,
                "*GS16,351535058709775,100356130215,,SYS:G79W;V1.06;V1.0.2,GPS:A;6;N24.802700;E46.616828;0;0;684;1.35,COT:60,ADC:4.31;0.10,DTT:20000;;0;0;0;1"));

    }

}