aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/BceProtocolDecoderTest.java
blob: 93fc080a44c73a84e1ef846d7ba5d7f76ab67eae (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.jboss.netty.buffer.ChannelBuffers;
import static org.junit.Assert.assertNull;
import org.junit.Test;
import org.traccar.helper.ChannelBufferTools;
import static org.traccar.helper.DecoderVerifier.verify;
import org.traccar.helper.TestDataManager;

public class BceProtocolDecoderTest {

    @Test
    public void testDecode() throws Exception {

        BceProtocolDecoder decoder = new BceProtocolDecoder(new TestDataManager(), null, null);

        verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
                "be76619c834601004200a0003fd769c568ffc3db0079161d420683a9414918b1150000000000d102660167040000000000009f06357f0000a401042ea415e10232000000000000000000000051"))));

    }

}