Rename T800X decoder classes

This commit is contained in:
Anton Tananaev 2015-11-01 18:41:40 +13:00
parent 966082dc8f
commit bf57bcad19
4 changed files with 6 additions and 11 deletions

View File

@ -335,5 +335,6 @@
<entry key='blackkite.port'>5091</entry>
<entry key='adm.port'>5092</entry>
<entry key='watch.port'>5093</entry>
<entry key='t800x.port'>5094</entry>
</properties>

View File

@ -17,9 +17,6 @@ package org.traccar.protocol;
import org.jboss.netty.bootstrap.ServerBootstrap;
import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.handler.codec.frame.LineBasedFrameDecoder;
import org.jboss.netty.handler.codec.string.StringDecoder;
import org.jboss.netty.handler.codec.string.StringEncoder;
import org.traccar.BaseProtocol;
import org.traccar.TrackerServer;
@ -36,7 +33,7 @@ public class T800xProtocol extends BaseProtocol {
serverList.add(new TrackerServer(new ServerBootstrap(), getName()) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
pipeline.addLast("objectDecoder", new T800XProtocolDecoder(T800xProtocol.this));
pipeline.addLast("objectDecoder", new T800xProtocolDecoder(T800xProtocol.this));
}
});
}

View File

@ -15,9 +15,9 @@ import java.net.SocketAddress;
import java.text.SimpleDateFormat;
import java.util.*;
public class T800XProtocolDecoder extends BaseProtocolDecoder {
public class T800xProtocolDecoder extends BaseProtocolDecoder {
public T800XProtocolDecoder(T800xProtocol protocol) {
public T800xProtocolDecoder(T800xProtocol protocol) {
super(protocol);
}

View File

@ -5,15 +5,12 @@ import org.jboss.netty.buffer.ChannelBuffers;
import org.junit.Test;
import org.traccar.helper.ChannelBufferTools;
/**
* Created by Ankit on 21-10-2015.
*/
public class T800XProtocolDecoderTest extends TestCase {
public class T800xProtocolDecoderTest extends TestCase {
@Test
public void testDecode() throws Exception {
/*T800XProtocolDecoder decoder = new T800XProtocolDecoder(new TestDataManager(), null, null);
/*T800xProtocolDecoder decoder = new T800xProtocolDecoder(new TestDataManager(), null, null);
assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
"232301001500020357367031063979150208625010"))));