aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/HuabaoFrameEncoderTest.java
blob: a2799e9a8ef2de0dc453a95d556110b02e9bb222 (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 io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import org.junit.jupiter.api.Test;
import org.traccar.ProtocolTest;

public class HuabaoFrameEncoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        var encoder = new HuabaoFrameEncoder();

        ByteBuf buf = Unpooled.buffer();
        encoder.encode(null, binary("7e307e087d557e"), buf);
        verifyFrame(binary("7e307d02087d01557e"), buf);

    }

}