aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/SmokeyProtocolDecoderTest.java
blob: 01950fdb58f5c508a2872071171c7722dfbf4f95 (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
25
26
27
package org.traccar.protocol;

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

public class SmokeyProtocolDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        SmokeyProtocolDecoder decoder = new SmokeyProtocolDecoder(new SmokeyProtocol());

        verifyNothing(decoder, binary(
                "534d0300865628025163272f031400000000001c000200000c0168028f000102c9f93a011f538d"));

        verifyNothing(decoder, binary(
                "534d0300865628025163272f031400000000001f000200000c0167028f000102c9f93a011f5082"));

        verifyNothing(decoder, binary(
                "534d0300865628025163272f031400000000001d000200000c0167028f000102c9f93a011f5282"));

        verifyNothing(decoder, binary(
                "534d0300865628025163272f031400000000001e000200000c0167028f000102c9f93a011f5182"));

    }

}