- java.lang.Object
-
- io.helidon.webserver.testsupport.TestClient
-
public class TestClient extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestClientcreate(Routing routing)Creates newTestClientinstance with specified routing.static TestClientcreate(Routing routing, io.helidon.media.common.MediaContext mediaContext)Creates newTestClientinstance with specified routing.static TestClientcreate(Routing routing, io.helidon.media.common.MediaSupport mediaSupport)Creates newTestClientinstance with specified routing.static TestClientcreate(Supplier<Routing> routingBuilder)Creates newTestClientinstance with specified routing.TestRequestpath(String path)Creates a request of provided URI path.
-
-
-
Method Detail
-
create
public static TestClient create(Supplier<Routing> routingBuilder)
Creates newTestClientinstance with specified routing.- Parameters:
routingBuilder- a routing builder to test; will be built as a first step of this method execution- Returns:
- new instance
- Throws:
NullPointerException- if routing parameter is null
-
create
public static TestClient create(Routing routing, io.helidon.media.common.MediaContext mediaContext)
Creates newTestClientinstance with specified routing.- Parameters:
routing- a routing to testmediaContext- media context- Returns:
- new instance
- Throws:
NullPointerException- if routing parameter is null
-
create
public static TestClient create(Routing routing, io.helidon.media.common.MediaSupport mediaSupport)
Creates newTestClientinstance with specified routing.- Parameters:
routing- a routing to testmediaSupport- media support- Returns:
- new instance
- Throws:
NullPointerException- if routing parameter is null
-
create
public static TestClient create(Routing routing)
Creates newTestClientinstance with specified routing.- Parameters:
routing- a routing to test- Returns:
- new instance
- Throws:
NullPointerException- if routing parameter is null
-
path
public TestRequest path(String path)
Creates a request of provided URI path.- Parameters:
path- a path to request- Returns:
- new test request builder
-
-