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
27
28
29
30
31
32
|
package org.traccar.protocol;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import org.junit.Test;
public class V680ProtocolDecoderTest {
@Test
public void testDecode() throws Exception {
V680ProtocolDecoder decoder = new V680ProtocolDecoder(null);
decoder.setDataManager(new TestDataManager());
assertNull(decoder.decode(null, null,
"#353588102019155"));
assertNotNull(decoder.decode(null, null,
"#356823031193431##0#0000#SF#1#72403#V#04702.3025,W,2252.18380,S,008.18,0#090413#134938"));
assertNotNull(decoder.decode(null, null,
"#356823033219838#1000#0#1478#AUT#1#66830FFB#03855.6628,E,4716.6821,N,001.41,259#130812#143905"));
assertNotNull(decoder.decode(null, null,
"356823033219838#1000#0#1478#AUT#1#66830FFB#03855.6628,E,4716.6821,N,001.41,259#130812#143905"));
assertNotNull(decoder.decode(null, null,
"#353588102019155##1#0000#AUT#01#7240060be7873f#4849.079800,W,2614.458200,S,0.00,0.00#130413#182110.000"));
}
}
|