diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-12 21:27:59 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-12 21:27:59 -0700 |
commit | 1fdb7794514d59fef165d647f0b9ccf5db271621 (patch) | |
tree | dbb6f69f3cbcb08d1f7f9b33f158dd3a978a97d2 /src/test/java/org/traccar/protocol/SolarPoweredProtocolDecoderTest.java | |
parent | 578a8544bc0d31569fabbc8c3aa26a53d161d5ed (diff) | |
download | trackermap-server-1fdb7794514d59fef165d647f0b9ccf5db271621.tar.gz trackermap-server-1fdb7794514d59fef165d647f0b9ccf5db271621.tar.bz2 trackermap-server-1fdb7794514d59fef165d647f0b9ccf5db271621.zip |
Add a test case
Diffstat (limited to 'src/test/java/org/traccar/protocol/SolarPoweredProtocolDecoderTest.java')
-rw-r--r-- | src/test/java/org/traccar/protocol/SolarPoweredProtocolDecoderTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/SolarPoweredProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/SolarPoweredProtocolDecoderTest.java index b040d4ecf..4e08ce7a5 100644 --- a/src/test/java/org/traccar/protocol/SolarPoweredProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/SolarPoweredProtocolDecoderTest.java @@ -2,6 +2,7 @@ package org.traccar.protocol; import org.junit.Test; import org.traccar.ProtocolTest; +import org.traccar.model.Position; public class SolarPoweredProtocolDecoderTest extends ProtocolTest { @@ -10,6 +11,10 @@ public class SolarPoweredProtocolDecoderTest extends ProtocolTest { SolarPoweredProtocolDecoder decoder = new SolarPoweredProtocolDecoder(null); + verifyAttribute(decoder, binary( + "7e850256553309440011003e81131914030600332301a61ed709209ff40014b89082020f0283100000f908000000440000003d1f19021784114161726f6e34475630312d323030333031057e"), + Position.KEY_RSSI, 23); + verifyPosition(decoder, binary( "7e850256553304728011003e811319130b0b11211f01a2e6be091fa0e10114cc1582020f00831000004e7400000044000000223819020c84114161726f6e34475630312d313931303331127e")); |