1 changed files with 51 additions and 51 deletions
			
			
		@ -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");
 | 
				
			||||
//    }
 | 
				
			||||
//
 | 
				
			||||
//}
 | 
				
			||||
					 | 
				
			||||
					Loading…
					
					
				
		Reference in new issue