aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/Jt600ProtocolEncoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-04-11 11:27:08 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-04-11 11:27:08 -0700
commit2099230503370be87b893287e264aa200d0d930f (patch)
tree618b9aff989e713dc734b871a5c082f3c734f779 /src/test/java/org/traccar/protocol/Jt600ProtocolEncoderTest.java
parent4904b15558f05b3458fc5f80253707e51f0ff2c0 (diff)
downloadtrackermap-server-2099230503370be87b893287e264aa200d0d930f.tar.gz
trackermap-server-2099230503370be87b893287e264aa200d0d930f.tar.bz2
trackermap-server-2099230503370be87b893287e264aa200d0d930f.zip
Use var in tests
Diffstat (limited to 'src/test/java/org/traccar/protocol/Jt600ProtocolEncoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/Jt600ProtocolEncoderTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/org/traccar/protocol/Jt600ProtocolEncoderTest.java b/src/test/java/org/traccar/protocol/Jt600ProtocolEncoderTest.java
index c0b399c63..51cefb962 100644
--- a/src/test/java/org/traccar/protocol/Jt600ProtocolEncoderTest.java
+++ b/src/test/java/org/traccar/protocol/Jt600ProtocolEncoderTest.java
@@ -11,26 +11,26 @@ public class Jt600ProtocolEncoderTest extends ProtocolTest {
Command command = new Command();
@Test
- public void testEngineStop() throws Exception {
+ public void testEngineStop() {
command.setType(Command.TYPE_ENGINE_STOP);
assertEquals("(S07,0)", encoder.encodeCommand(command));
}
@Test
- public void testEngineResume() throws Exception {
+ public void testEngineResume() {
command.setType(Command.TYPE_ENGINE_RESUME);
assertEquals("(S07,1)", encoder.encodeCommand(command));
}
@Test
- public void testSetTimezone() throws Exception {
+ public void testSetTimezone() {
command.setType(Command.TYPE_SET_TIMEZONE);
command.set(Command.KEY_TIMEZONE, "GMT+4");
assertEquals("(S09,1,240)", encoder.encodeCommand(command));
}
@Test
- public void testReboot() throws Exception {
+ public void testReboot() {
command.setType(Command.TYPE_REBOOT_DEVICE);
assertEquals("(S17)", encoder.encodeCommand(command));
}