Package io.helidon.webserver.testsupport
Class TestClient
- java.lang.Object
-
- io.helidon.webserver.testsupport.TestClient
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestClientcreate(io.helidon.webserver.Routing routing)Creates newTestClientinstance with specified routing.static TestClientcreate(Supplier<io.helidon.webserver.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<io.helidon.webserver.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(io.helidon.webserver.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
-
-