diff options
author | Gavriel Fleischer <flocsy@gmail.com> | 2019-11-09 23:51:41 +0200 |
---|---|---|
committer | Gavriel Fleischer <flocsy@gmail.com> | 2019-11-09 23:51:41 +0200 |
commit | 47a1af1554b0216eae8248227407486c0eba8ef3 (patch) | |
tree | 65478eb23a6ae1bc08248040498117802e20ff72 /src/test/java/org/traccar/protocol/WatchProtocolEncoderTest.java | |
parent | fd6d1aa06ba983e17833b11393cfb344e5825fba (diff) | |
download | trackermap-server-47a1af1554b0216eae8248227407486c0eba8ef3.tar.gz trackermap-server-47a1af1554b0216eae8248227407486c0eba8ef3.tar.bz2 trackermap-server-47a1af1554b0216eae8248227407486c0eba8ef3.zip |
added language to watch protocol's set_timezone command
Diffstat (limited to 'src/test/java/org/traccar/protocol/WatchProtocolEncoderTest.java')
-rw-r--r-- | src/test/java/org/traccar/protocol/WatchProtocolEncoderTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/WatchProtocolEncoderTest.java b/src/test/java/org/traccar/protocol/WatchProtocolEncoderTest.java index 798213c7b..a4a795050 100644 --- a/src/test/java/org/traccar/protocol/WatchProtocolEncoderTest.java +++ b/src/test/java/org/traccar/protocol/WatchProtocolEncoderTest.java @@ -78,6 +78,10 @@ public class WatchProtocolEncoderTest extends ProtocolTest { command.set(Command.KEY_TIMEZONE, "GMT-11:30"); verifyFrame(buffer("[CS*123456789012345*0009*LZ,,-11.5]"), encoder.encodeCommand(null, command)); + command.set(Command.KEY_LANGUAGE, 0); + command.set(Command.KEY_TIMEZONE, "GMT+05:45"); + verifyFrame(buffer("[CS*123456789012345*000a*LZ,0,+5.75]"), encoder.encodeCommand(null, command)); + } } |