aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/DingtekFrameDecoderTest.java
blob: 6219b3da488819b95d94ed994e53fee2fac2fc0f (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.jupiter.api.Test;
import org.traccar.ProtocolTest;

public class DingtekFrameDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        var decoder = inject(new DingtekFrameDecoder());

        verifyFrame(
                binary("383030303031303131453032383830303138303030303030303030313545303038303545433430303031313836383832323034303130343433303831"),
                decoder.decode(null, null, binary("383030303031303131453032383830303138303030303030303030313545303038303545433430303031313836383832323034303130343433303831")));

    }

}