Search in sources :

Example 26 with V3MockParsingRequestHandler

use of com.yahoo.vespa.http.client.handlers.V3MockParsingRequestHandler in project vespa by vespa-engine.

the class V3HttpAPITest method requireThatBadResponseCodeFails.

@Test
public void requireThatBadResponseCodeFails() throws Exception {
    testServerWithMock(new V3MockParsingRequestHandler(401), true, false);
    testServerWithMock(new V3MockParsingRequestHandler(403), true, false);
    testServerWithMock(new V3MockParsingRequestHandler(407), true, false);
}
Also used : V3MockParsingRequestHandler(com.yahoo.vespa.http.client.handlers.V3MockParsingRequestHandler) Test(org.junit.Test)

Aggregations

V3MockParsingRequestHandler (com.yahoo.vespa.http.client.handlers.V3MockParsingRequestHandler)26 Test (org.junit.Test)26 Cluster (com.yahoo.vespa.http.client.config.Cluster)21 SessionParams (com.yahoo.vespa.http.client.config.SessionParams)19 Endpoint (com.yahoo.vespa.http.client.config.Endpoint)15 HashMap (java.util.HashMap)14 FeedParams (com.yahoo.vespa.http.client.config.FeedParams)8 SessionImpl (com.yahoo.vespa.http.client.core.api.SessionImpl)3 CountDownLatch (java.util.concurrent.CountDownLatch)3 ConnectionParams (com.yahoo.vespa.http.client.config.ConnectionParams)2 Server (com.yahoo.vespa.http.client.Server)1