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

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

public class Mavlink2ProtocolDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        var decoder = inject(new Mavlink2ProtocolDecoder(null));

        verifyAttributes(decoder, binary(
                "fd1c0000ce01012100004da91f004005d323b89aa30ea6ed070099fb0100f7fffdff0000942c4a88"));

        verifyAttributes(decoder, binary(
                "fd1c0000e7010121000047aa1f004005d323b89aa30e9ced070093fb0100f8fffdff0000952c70ff"));

    }

}