...
|
...
|
@@ -2,11 +2,6 @@ package com.monitor; |
|
|
|
|
|
import com.monitor.common.util.HttpRestClient;
|
|
|
import org.apache.commons.net.telnet.TelnetClient;
|
|
|
import org.apache.http.HttpResponse;
|
|
|
import org.apache.http.client.methods.HttpGet;
|
|
|
import org.apache.http.client.params.ClientPNames;
|
|
|
import org.apache.http.impl.client.BasicResponseHandler;
|
|
|
import org.apache.http.impl.client.DefaultHttpClient;
|
|
|
import org.junit.Test;
|
|
|
import org.junit.runner.RunWith;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
...
|
...
|
@@ -14,9 +9,9 @@ import org.springframework.context.annotation.PropertySource; |
|
|
import org.springframework.test.context.ContextConfiguration;
|
|
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|
|
|
|
|
import java.io.*;
|
|
|
import java.net.HttpURLConnection;
|
|
|
import java.net.Socket;
|
|
|
import java.io.ByteArrayOutputStream;
|
|
|
import java.io.IOException;
|
|
|
import java.io.InputStream;
|
|
|
|
|
|
/**
|
|
|
* Created by fruwei on 2016/7/5.
|
...
|
...
|
|