aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/HuabaoFrameDecoderTest.java
blob: 98caf1dca6197771fa5d8b416b53ad7cfaec0228 (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 org.junit.Assert;
import org.junit.Test;
import org.traccar.ProtocolTest;

import static org.junit.Assert.assertEquals;

public class HuabaoFrameDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        HuabaoFrameDecoder decoder = new HuabaoFrameDecoder();

        assertEquals(
                binary("7e307e087d557e"),
                decoder.decode(null, null, binary("7e307d02087d01557e")));

    }

}