blob: 2e3600b99f63c8c35efc6da4454e5adb348507d0 (
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 Pt215FrameDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
Pt215FrameDecoder decoder = new Pt215FrameDecoder();
verifyFrame(
binary("58580d010359339075799656010d0a"),
decoder.decode(null, null, binary("58580d010359339075799656010d0a")));
verifyFrame(
binary("5858071340010819640d0a"),
decoder.decode(null, null, binary("5858071340010819640d0a")));
verifyFrame(
binary("585815101309160d0f0c9902b7015405f0e82404347afff7000d0a"),
decoder.decode(null, null, binary("585815101309160d0f0c9902b7015405f0e82404347afff7000d0a")));
}
}
|