aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-11-10 14:37:08 -0800
committerGitHub <noreply@github.com>2019-11-10 14:37:08 -0800
commit9889611b00b6159fddbdddc236448884886fe2ef (patch)
treed2892db8c323ef88398370e9120ac0cae4cdee20 /src/test
parent0ce8f90d8a8fd4315b439fe124ecebbd78ac4aa1 (diff)
parent61d07a123beeaa1e85f44046413a680aabda0c9c (diff)
downloadtraccar-server-9889611b00b6159fddbdddc236448884886fe2ef.tar.gz
traccar-server-9889611b00b6159fddbdddc236448884886fe2ef.tar.bz2
traccar-server-9889611b00b6159fddbdddc236448884886fe2ef.zip
Merge pull request #4436 from flocsy/set-language
added language to watch protocol's set_timezone command
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/traccar/protocol/WatchProtocolEncoderTest.java4
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));
+
}
}