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