Search in sources :

Example 1 with HttpClientVerticle

use of io.servicecomb.foundation.vertx.client.http.HttpClientVerticle in project java-chassis by ServiceComb.

the class TestClient method testHttpClientVerticle.

@Test
public void testHttpClientVerticle() throws Exception {
    HttpClientVerticle oVerticle = new HttpClientVerticle();
    oVerticle.init(Vertx.vertx(), null);
    Assert.assertEquals("clientMgr", HttpClientVerticle.CLIENT_MGR);
    Assert.assertEquals("poolCount", HttpClientVerticle.POOL_COUNT);
    Assert.assertEquals("clientOptions", HttpClientVerticle.CLIENT_OPTIONS);
    HttpClientWithContext oContextClient = new HttpClientWithContext(null, null);
    Assert.assertEquals(null, oContextClient.getHttpClient());
}
Also used : HttpClientWithContext(io.servicecomb.foundation.vertx.client.http.HttpClientWithContext) HttpClientVerticle(io.servicecomb.foundation.vertx.client.http.HttpClientVerticle) Test(org.junit.Test)

Aggregations

HttpClientVerticle (io.servicecomb.foundation.vertx.client.http.HttpClientVerticle)1 HttpClientWithContext (io.servicecomb.foundation.vertx.client.http.HttpClientWithContext)1 Test (org.junit.Test)1