Divide the MSB source codes into two repos
[msb/apigateway.git] / apiroute / apiroute-service / src / test / java / org / onap / msb / apiroute / wrapper / util / HttpClientUtilTest.java
1 package org.onap.msb.apiroute.wrapper.util;
2
3 import java.io.IOException;
4
5 import org.junit.Assert;
6 import org.junit.Test;
7 import org.onap.msb.apiroute.wrapper.util.HttpClientUtil;
8
9 public class HttpClientUtilTest {
10  
11   private String testIp="http://10.74.151.26:8500";
12   
13   @Test
14   public void test_httpGet() {
15     /*try {
16       int result = HttpClientUtil.httpGetStatus(testIp);
17       if(result==200){
18         Assert.assertEquals("Consul Agent", HttpClientUtil.httpGet(testIp));
19       }
20       else{
21         Assert.assertEquals(500, result); 
22       }
23       
24
25     } catch (Exception e) {
26       Assert.assertTrue(e instanceof IOException);
27     }*/
28   }
29 }