aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/SolarPoweredProtocolDecoderTest.java
blob: b040d4ecfe281f6536e741d6dc04cc12dcba092b (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.Test;
import org.traccar.ProtocolTest;

public class SolarPoweredProtocolDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        SolarPoweredProtocolDecoder decoder = new SolarPoweredProtocolDecoder(null);

        verifyPosition(decoder, binary(
                "7e850256553304728011003e811319130b0b11211f01a2e6be091fa0e10114cc1582020f00831000004e7400000044000000223819020c84114161726f6e34475630312d313931303331127e"));

        verifyPosition(decoder, binary(
                "7e850256553304728011003e811319130b0d160e2901a2e66f091fa0ab0014c39482020f0083100002f42c00000287000000fc2719021484114161726f6e34475630312d313931303331e67e"));

    }

}