From 3b87a5b40da8f3b73aa79b2becf7fa5cc6c3be02 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 22 Jul 2024 13:34:19 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mh/user/socket/NettyClientTest.java | 102 +++++++++--------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/user-service/src/test/java/com/mh/user/socket/NettyClientTest.java b/user-service/src/test/java/com/mh/user/socket/NettyClientTest.java index 4b04f0e..082eeea 100644 --- a/user-service/src/test/java/com/mh/user/socket/NettyClientTest.java +++ b/user-service/src/test/java/com/mh/user/socket/NettyClientTest.java @@ -1,52 +1,52 @@ -package com.mh.user.socket; - -import lombok.extern.slf4j.Slf4j; -import org.junit.jupiter.api.Test; -import org.springframework.boot.test.context.SpringBootTest; - -/** - * @author ljf - * @title : - * @description : - * @updateTime 2020-05-13 - * @throws : - */ -@Slf4j -@SpringBootTest -public class NettyClientTest { - - @Test - void Test() throws InterruptedException { - NettyClient nettyClient = new NettyClient(); - nettyClient.connect(1008,"192.168.1.222"); -// Thread.sleep(5000); -// nettyClient.connect(10100,"192.168.1.222"); - } - - @Test - void Test1() throws InterruptedException { - NettyClient nettyClient = new NettyClient(); - nettyClient.connect(8080,"192.168.2.10"); -// Thread.sleep(5000); -// nettyClient.connect(10100,"192.168.1.222"); - } - - @Test - void testChillers() throws InterruptedException { - } - - @Test - void testDDCChillers() throws InterruptedException { - NettyChillerDDCClient.connect(8080,"169.254.194.199"); +//package com.mh.user.socket; +// +//import lombok.extern.slf4j.Slf4j; +//import org.junit.jupiter.api.Test; +//import org.springframework.boot.test.context.SpringBootTest; +// +///** +// * @author ljf +// * @title : +// * @description : +// * @updateTime 2020-05-13 +// * @throws : +// */ +//@Slf4j +//@SpringBootTest +//public class NettyClientTest { +// +// @Test +// void Test() throws InterruptedException { +// NettyClient nettyClient = new NettyClient(); +// nettyClient.connect(1008,"192.168.1.222"); +//// Thread.sleep(5000); +//// nettyClient.connect(10100,"192.168.1.222"); +// } +// +// @Test +// void Test1() throws InterruptedException { +// NettyClient nettyClient = new NettyClient(); +// nettyClient.connect(8080,"192.168.2.10"); +//// Thread.sleep(5000); +//// nettyClient.connect(10100,"192.168.1.222"); +// } +// +// @Test +// void testChillers() throws InterruptedException { +// } +// +// @Test +// void testDDCChillers() throws InterruptedException { // NettyChillerDDCClient.connect(8080,"169.254.194.199"); - - } - - @Test - void testMeterChillers() throws InterruptedException { - NettyMeterClient nettyMeterClient = new NettyMeterClient(); - nettyMeterClient.connect(8080,"192.168.2.10"); -// nettyMeterClient.connect(9000,"192.168.2.54"); - } - -} +//// NettyChillerDDCClient.connect(8080,"169.254.194.199"); +// +// } +// +// @Test +// void testMeterChillers() throws InterruptedException { +// NettyMeterClient nettyMeterClient = new NettyMeterClient(); +// nettyMeterClient.connect(8080,"192.168.2.10"); +//// nettyMeterClient.connect(9000,"192.168.2.54"); +// } +// +//}