aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2024-03-28 23:02:18 -0600
committerIván Ávalos <avalos@disroot.org>2024-03-28 23:02:18 -0600
commit4dec2ef603f078ff3bd18d63d1fbd992537cbb88 (patch)
tree9c1f2886390447183a64a405fb885a9923412701 /src/test/java/org
parentdec9993b2e1a7801bd69f1a9d92013f83e17f253 (diff)
parent13f6415ba0a8ca76d1a2cbb3d0ea199361295f1b (diff)
downloadtrackermap-server-4dec2ef603f078ff3bd18d63d1fbd992537cbb88.tar.gz
trackermap-server-4dec2ef603f078ff3bd18d63d1fbd992537cbb88.tar.bz2
trackermap-server-4dec2ef603f078ff3bd18d63d1fbd992537cbb88.zip
Merge branch 'upstream'trackermap-v0.1.4
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/traccar/geolocation/GeolocationProviderTest.java2
-rw-r--r--src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/test/java/org/traccar/geolocation/GeolocationProviderTest.java b/src/test/java/org/traccar/geolocation/GeolocationProviderTest.java
index da5ae3340..c1fa6dbbe 100644
--- a/src/test/java/org/traccar/geolocation/GeolocationProviderTest.java
+++ b/src/test/java/org/traccar/geolocation/GeolocationProviderTest.java
@@ -19,7 +19,7 @@ public class GeolocationProviderTest extends BaseTest {
@Disabled
@Test
public void testMozilla() throws Exception {
- MozillaGeolocationProvider provider = new MozillaGeolocationProvider(client, null);
+ GoogleGeolocationProvider provider = new GoogleGeolocationProvider(client, null);
Network network = new Network(CellTower.from(208, 1, 2, 1234567));
diff --git a/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java
index 164635109..7fd7cc599 100644
--- a/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java
@@ -12,6 +12,10 @@ public class HuabaoProtocolDecoderTest extends ProtocolTest {
var decoder = inject(new HuabaoProtocolDecoder(null));
verifyAttribute(decoder, binary(
+ "7E0200005300959000194400080000000000000003015DA64806CCB4A8001100000000230816014137010400005B3F30011F310112EB29000C00B28986049910219020787400060089FFFFFFFF000600C5FFFFFFEF0004002D0F4E000300A84CE07E"),
+ Position.KEY_BATTERY_LEVEL, 76);
+
+ verifyAttribute(decoder, binary(
"7e55018c418560090010174701022106242122348476113550490700001c06000000074e0000000000000308100000100102020200000a030000000b0803363839363037650c0600000001000afa7e"),
"unlockResult", 0x65);