blob: ce27684483e9cde6631ace4d56dc2454accfa088 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
public class Gs100ProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
var decoder = inject(new Gs100ProtocolDecoder(null));
verifyNull(decoder, binary(
"474C490F383632343632303332353036373030133839333831303131363039313838343837323546084657312E302E3236"));
verifyPositions(decoder, binary(
"47440416900000124833220421018478956c445263460110426616900000124838220421018478907c445263470055824116900000124839220421018478890c445263440091526116900000124840220421018478867c4452634401312272"));
verifyPositions(decoder, binary(
"47440216900000064113030417020236402C452286650051929716900000064115030417020236408C4522866800379020"));
}
}
|