netty-调整测试类路径
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 开启一个客户端,
|
* 开启一个客户端,
|
||||||
@@ -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;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通讯服务器请求处理
|
* 通讯服务器请求处理
|
||||||
@@ -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;
|
||||||
@@ -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.*;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package test.netty.nio.net.client;
|
package com.test.netty.client;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 消息协议指令定义
|
* 消息协议指令定义
|
||||||
@@ -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;
|
||||||
@@ -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.
|
||||||
@@ -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;
|
||||||
@@ -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个字节长度+内容
|
||||||
@@ -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;
|
||||||
|
|
||||||
@@ -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;
|
||||||
|
|
||||||
@@ -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;
|
||||||
|
|
||||||
@@ -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;
|
||||||
@@ -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;
|
||||||
@@ -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;
|
||||||
@@ -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;
|
||||||
|
|
||||||
@@ -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;
|
||||||
|
|
||||||
Reference in New Issue
Block a user