blob: 4ec3a14d4072c43a334107d7348a5fe25a654514 (
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
25
26
|
package org.traccar.protocol;
import org.traccar.helper.TestDataManager;
import static org.traccar.helper.DecoderVerifier.verify;
import static org.junit.Assert.assertNull;
import org.junit.Test;
public class CarscopProtocolDecoderTest {
@Test
public void testDecode() throws Exception {
CarscopProtocolDecoder decoder = new CarscopProtocolDecoder(new TestDataManager());
verify(decoder.decode(null, null,
"*040331141830UB05123456789012345061825A2934.0133N10627.2544E000.0040331309.6200000000L000000"));
verify(decoder.decode(null, null,
"*040331141830UB04999999984061825A2934.0133N10627.2544E000.0040331309.6200000000L000000"));
verify(decoder.decode(null, null,
"*040331141830UA012Hi-jack061825A2934.0133N10627.2544E000.0040331309.6200000000L000000"));
}
}
|