Search in sources :

Example 6 with FullResponse

use of org.webpieces.http2client.api.dto.FullResponse in project webpieces by deanhiller.

the class TestBasicHttp2Client method testBasicSendRespond.

@Test
public void testBasicSendRespond() {
    FullRequest request1 = Requests.createHttp2Request();
    MockResponseListener respListener1 = new MockResponseListener();
    respListener1.setIncomingRespDefault(CompletableFuture.completedFuture(null));
    CompletableFuture<FullResponse> future = httpSocket.send(request1);
    Assert.assertFalse(future.isDone());
}
Also used : FullResponse(org.webpieces.http2client.api.dto.FullResponse) MockResponseListener(org.webpieces.http2client.mock.MockResponseListener) FullRequest(org.webpieces.http2client.api.dto.FullRequest) Test(org.junit.Test)

Aggregations

FullResponse (org.webpieces.http2client.api.dto.FullResponse)6 FullRequest (org.webpieces.http2client.api.dto.FullRequest)5 Test (org.junit.Test)4 Http2Response (com.webpieces.hpack.api.dto.Http2Response)3 DataFrame (com.webpieces.http2parser.api.dto.DataFrame)3 Http2Trailers (com.webpieces.hpack.api.dto.Http2Trailers)2 Http2Msg (com.webpieces.http2parser.api.dto.lib.Http2Msg)2 Http2Headers (com.webpieces.hpack.api.dto.Http2Headers)1 Http2Request (com.webpieces.hpack.api.dto.Http2Request)1 StreamHandle (com.webpieces.http2engine.api.StreamHandle)1 Http2ClientEngine (com.webpieces.http2engine.api.client.Http2ClientEngine)1 Http2ClientEngineFactory (com.webpieces.http2engine.api.client.Http2ClientEngineFactory)1 InetSocketAddress (java.net.InetSocketAddress)1 CompletableFuture (java.util.concurrent.CompletableFuture)1 DataWrapper (org.webpieces.data.api.DataWrapper)1 Http2Socket (org.webpieces.http2client.api.Http2Socket)1 MockResponseListener (org.webpieces.http2client.mock.MockResponseListener)1 TCPChannel (org.webpieces.nio.api.channels.TCPChannel)1 Logger (org.webpieces.util.logging.Logger)1 LoggerFactory (org.webpieces.util.logging.LoggerFactory)1