aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/CellocatorFrameDecoderTest.java
blob: 914166a587b988b756238672df84cc5649a4330f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package org.traccar.protocol;

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

public class CellocatorFrameDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        CellocatorFrameDecoder decoder = new CellocatorFrameDecoder();

        verifyFrame(
                binary("4D4347500BA9880B00C80A7E003800000000000806000001210A14000613000000000D4457A5F71442AC02E80300000100040707000011171408060E1C08000100000200020000FD"),
                decoder.decode(null, null, binary("4D4347500BA9880B00C80A7E003800000000000806000001210A14000613000000000D4457A5F71442AC02E80300000100040707000011171408060E1C08000100000200020000FD")));

    }

}