blob: 54a8aaa14bedf1e2a5d0e720d76943546e078848 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package org.traccar.protocol;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import org.junit.Test;
import org.traccar.ProtocolTest;
public class Xexun2FrameEncoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
Xexun2FrameEncoder encoder = new Xexun2FrameEncoder();
ByteBuf result = Unpooled.buffer();
encoder.encode(null, binary("FAAF123456FAAF123456FBBF123456FAAF"), result);
verifyFrame(binary("FAAF123456FBBF01123456FBBF02123456FAAF"), result);
}
}
|