aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-01-10 10:12:30 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-01-10 10:12:30 +1300
commit0a12b325970079079946ad895d1a5a11265b3fe4 (patch)
treed141a84b4b264643565fc9865db13dd99438661c /src/org/traccar
parentab0e4b7519890aa5b1d38f9ea62868ec23239d0d (diff)
downloadtraccar-server-0a12b325970079079946ad895d1a5a11265b3fe4.tar.gz
traccar-server-0a12b325970079079946ad895d1a5a11265b3fe4.tar.bz2
traccar-server-0a12b325970079079946ad895d1a5a11265b3fe4.zip
Add Ulbotech unit tests
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/UlbotechProtocolDecoder.java17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/org/traccar/protocol/UlbotechProtocolDecoder.java b/src/org/traccar/protocol/UlbotechProtocolDecoder.java
index cf152ebc5..c5f63812e 100644
--- a/src/org/traccar/protocol/UlbotechProtocolDecoder.java
+++ b/src/org/traccar/protocol/UlbotechProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012 Anton Tananaev (anton.tananaev@gmail.com)
+ * Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@
package org.traccar.protocol;
import org.jboss.netty.buffer.ChannelBuffer;
-import org.jboss.netty.buffer.ChannelBuffers;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.traccar.BaseProtocolDecoder;
@@ -26,10 +25,8 @@ import org.traccar.helper.Log;
import org.traccar.model.ExtendedInfoFormatter;
import org.traccar.model.Position;
-import java.util.Calendar;
import java.util.Date;
import java.util.Properties;
-import java.util.TimeZone;
public class UlbotechProtocolDecoder extends BaseProtocolDecoder {
@@ -37,18 +34,6 @@ public class UlbotechProtocolDecoder extends BaseProtocolDecoder {
super(dataManager, protocol, properties);
}
- private String readImei(ChannelBuffer buf) {
- int b = buf.readUnsignedByte();
- StringBuilder imei = new StringBuilder();
- imei.append(b & 0x0F);
- for (int i = 0; i < 7; i++) {
- b = buf.readUnsignedByte();
- imei.append((b & 0xF0) >> 4);
- imei.append(b & 0x0F);
- }
- return imei.toString();
- }
-
private static final short DATA_GPS = 0x01;
private static final short DATA_LBS = 0x02;
private static final short DATA_STATUS = 0x03;