mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-06-17 16:00:25 +08:00
add test: TcpTransport
This commit is contained in:
@@ -48,6 +48,18 @@ public class TcpTransportTest {
|
||||
Arrays.toString(new SelfEncodingBase().selfWireEncode(lpPacket).getRaw()));
|
||||
}
|
||||
|
||||
/**
|
||||
* 测试结果:
|
||||
* send: [-15, 0, -6, 25, -52, 4, 4, 5, 6, 7, -15, 0, -5, 15, -15, 0, -4, 1, 1, -15, 0, -3, 1, 1, -15, 0, -2, 1, 0]
|
||||
* receive: [-15, 0, -6, 25, -52, 4, 4, 5, 6, 7, -15, 0, -5, 15, -15, 0, -4, 1, 1, -15, 0, -3, 1, 1, -15, 0, -2, 1, 0]
|
||||
* @throws IOException
|
||||
* @throws LogicFaceException
|
||||
* @throws EncoderException
|
||||
* @throws BlockException
|
||||
* @throws MgmtException
|
||||
* @throws ComponentException
|
||||
* @throws PacketException
|
||||
*/
|
||||
@Test
|
||||
public void testReceive() throws IOException, LogicFaceException, EncoderException, BlockException, MgmtException, ComponentException, PacketException {
|
||||
// 初始化一个tcp连接
|
||||
|
||||
Reference in New Issue
Block a user