aboutsummaryrefslogtreecommitdiffstats
path: root/apiroute/apiroute-service/src/test/java/org/onap/msb/apiroute/wrapper/util/HttpClientUtilTest.java
blob: 568e4f971080ba4844ca7902f1fd2c5ad7774513 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package org.onap.msb.apiroute.wrapper.util;

import java.io.IOException;

import org.junit.Assert;
import org.junit.Test;
import org.onap.msb.apiroute.wrapper.util.HttpClientUtil;

public class HttpClientUtilTest {
 
  private String testIp="http://10.74.151.26:8500";
  
  @Test
  public void test_httpGet() {
    /*try {
      int result = HttpClientUtil.httpGetStatus(testIp);
      if(result==200){
        Assert.assertEquals("Consul Agent", HttpClientUtil.httpGet(testIp));
      }
      else{
        Assert.assertEquals(500, result); 
      }
      

    } catch (Exception e) {
      Assert.assertTrue(e instanceof IOException);
    }*/
  }
}