aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/AdmProtocolEncoderTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/AdmProtocolEncoderTest.java b/test/org/traccar/protocol/AdmProtocolEncoderTest.java
index 3a72036bf..6d2452e26 100644
--- a/test/org/traccar/protocol/AdmProtocolEncoderTest.java
+++ b/test/org/traccar/protocol/AdmProtocolEncoderTest.java
@@ -16,6 +16,7 @@
*/
package org.traccar.protocol;
+import org.junit.Assert;
import org.junit.Test;
import org.traccar.ProtocolTest;
import org.traccar.model.Command;
@@ -30,13 +31,13 @@ public class AdmProtocolEncoderTest extends ProtocolTest {
Command command = new Command();
command.setDeviceId(1);
command.setType(Command.TYPE_GET_DEVICE_STATUS);
- verifyCommand(encoder, command, binary("5354415455530D0A"));
+ Assert.assertEquals("STATUS\r\n", encoder.encodeCommand(command));
command = new Command();
command.setDeviceId(1);
command.setType(Command.TYPE_CUSTOM);
command.set(Command.KEY_DATA, "INPUT 0");
- verifyCommand(encoder, command, binary("494E50555420300D0A"));
+ Assert.assertEquals("INPUT 0\r\n", encoder.encodeCommand(command));
}
}