netty-调整测试类路径

This commit is contained in:
limqhz
2020-07-07 10:08:44 +08:00
parent 15e7f03153
commit 0e5caf23a6
17 changed files with 22 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
package test.netty.nio.net; package com.test.netty;
import test.netty.nio.net.client.ClientThread; import com.test.netty.client.ClientThread;
/** /**
* 开启一个客户端 * 开启一个客户端

View File

@@ -1,12 +1,12 @@
package test.netty.nio.net.client; package com.test.netty.client;
import com.test.netty.dto.HeartBeat;
import io.netty.channel.ChannelHandler; import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter; import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.handler.timeout.IdleState; import io.netty.handler.timeout.IdleState;
import io.netty.handler.timeout.IdleStateEvent; import io.netty.handler.timeout.IdleStateEvent;
import test.netty.nio.net.dto.HeartBeat; import com.test.netty.dto.Message;
import test.netty.nio.net.dto.Message;
/** /**
* 通讯服务器请求处理 * 通讯服务器请求处理

View File

@@ -1,4 +1,4 @@
package test.netty.nio.net.client; package com.test.netty.client;
import io.netty.channel.ChannelInitializer; import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline; import io.netty.channel.ChannelPipeline;

View File

@@ -1,4 +1,4 @@
package test.netty.nio.net.client; package com.test.netty.client;
import io.netty.bootstrap.Bootstrap; import io.netty.bootstrap.Bootstrap;
import io.netty.channel.*; import io.netty.channel.*;

View File

@@ -1,4 +1,4 @@
package test.netty.nio.net.client; package com.test.netty.client;
/** /**
* 消息协议指令定义 * 消息协议指令定义

View File

@@ -1,4 +1,4 @@
package test.netty.nio.net.client; package com.test.netty.client;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelHandlerContext;

View File

@@ -1,4 +1,4 @@
package test.netty.nio.net.client; package com.test.netty.client;
/** /**
* Created by hehelt on 16/2/26. * Created by hehelt on 16/2/26.

View File

@@ -1,4 +1,4 @@
package test.netty.nio.net.client; package com.test.netty.client;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelHandlerContext;

View File

@@ -1,10 +1,10 @@
package test.netty.nio.net.client; package com.test.netty.client;
import com.test.netty.dto.JsonMapper;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder; import io.netty.handler.codec.MessageToByteEncoder;
import test.netty.nio.net.dto.JsonMapper; import com.test.netty.dto.Message;
import test.netty.nio.net.dto.Message;
/** /**
* 自定义编码器, 1个字节固定头+4个字节长度+内容 * 自定义编码器, 1个字节固定头+4个字节长度+内容

View File

@@ -1,4 +1,4 @@
package test.netty.nio.net.dto; package com.test.netty.dto;
import com.google.gson.annotations.Expose; import com.google.gson.annotations.Expose;

View File

@@ -1,4 +1,4 @@
package test.netty.nio.net.dto; package com.test.netty.dto;
import com.google.gson.annotations.Expose; import com.google.gson.annotations.Expose;

View File

@@ -1,4 +1,4 @@
package test.netty.nio.net.dto; package com.test.netty.dto;
import com.google.gson.annotations.Expose; import com.google.gson.annotations.Expose;

View File

@@ -1,4 +1,4 @@
package test.netty.nio.net.dto; package com.test.netty.dto;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;

View File

@@ -1,4 +1,4 @@
package test.netty.nio.net.dto; package com.test.netty.dto;
import com.google.gson.annotations.Expose; import com.google.gson.annotations.Expose;

View File

@@ -1,4 +1,4 @@
package test.netty.nio.net.dto; package com.test.netty.dto;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.GsonBuilder; import com.google.gson.GsonBuilder;

View File

@@ -1,4 +1,4 @@
package test.netty.nio.net.dto; package com.test.netty.dto;
import com.google.gson.annotations.Expose; import com.google.gson.annotations.Expose;

View File

@@ -1,4 +1,4 @@
package test.netty.nio.net.dto; package com.test.netty.dto;
import com.google.gson.annotations.Expose; import com.google.gson.annotations.Expose;