diff options
author | seym45 <seym45@gmail.com> | 2023-08-29 16:07:06 +0400 |
---|---|---|
committer | seym45 <seym45@gmail.com> | 2023-08-29 16:07:06 +0400 |
commit | 2dd48fa51b39489aff03e4d0ede2e4be196283ec (patch) | |
tree | 81ae566d3e9047a6dea9acf7d5c8ed7f12245e58 | |
parent | 0f38debb59b40ea9eeb89b93cdd4aeced2567f6d (diff) | |
download | trackermap-server-2dd48fa51b39489aff03e4d0ede2e4be196283ec.tar.gz trackermap-server-2dd48fa51b39489aff03e4d0ede2e4be196283ec.tar.bz2 trackermap-server-2dd48fa51b39489aff03e4d0ede2e4be196283ec.zip |
Fix test for encoding gator command
-rw-r--r-- | src/test/java/org/traccar/protocol/GatorProtocolEncoderTest.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/java/org/traccar/protocol/GatorProtocolEncoderTest.java b/src/test/java/org/traccar/protocol/GatorProtocolEncoderTest.java index 7938ab630..1559e8294 100644 --- a/src/test/java/org/traccar/protocol/GatorProtocolEncoderTest.java +++ b/src/test/java/org/traccar/protocol/GatorProtocolEncoderTest.java @@ -29,9 +29,7 @@ public class GatorProtocolEncoderTest extends ProtocolTest { Command command = new Command(); command.setDeviceId(1); - command.set("heartbeat_interval", 120); - command.set("engine_off_interval", 5); - command.set("engine_on_interval", 5); + command.set(command.KEY_FREQUENCY, "5;5;120"); command.setType(Command.TYPE_POSITION_PERIODIC); verifyCommand(encoder, command, binary("242434000b5800383a00050005781d0d")); } |