Package io.micronaut.http.tck
Interface ServerUnderTest
- All Superinterfaces:
io.micronaut.context.ApplicationContextProvider,AutoCloseable,Closeable
- All Known Implementing Classes:
EmbeddedServerUnderTest
public interface ServerUnderTest
extends io.micronaut.context.ApplicationContextProvider, Closeable, AutoCloseable
An API for a Micronaut HTTP Server under test. An implementation can be Netty or AWS Lambda Handler.
- Since:
- 1.8.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe property name used to signify we want to use a non-blocking client. -
Method Summary
Modifier and TypeMethodDescriptiondefault <I,O> io.micronaut.http.HttpResponse<O> exchange(io.micronaut.http.HttpRequest<I> request) <I,O> io.micronaut.http.HttpResponse<O> exchange(io.micronaut.http.HttpRequest<I> request, io.micronaut.core.type.Argument<O> bodyType) <I,O, E> io.micronaut.http.HttpResponse<O> exchange(io.micronaut.http.HttpRequest<I> request, io.micronaut.core.type.Argument<O> bodyType, io.micronaut.core.type.Argument<E> errorType) default <I,O> io.micronaut.http.HttpResponse<O> default <I,O, E> io.micronaut.http.HttpResponse<O> getPort()getURL()Methods inherited from interface io.micronaut.context.ApplicationContextProvider
getApplicationContext
-
Field Details
-
BLOCKING_CLIENT_PROPERTY
The property name used to signify we want to use a non-blocking client. This is used as the implementation varies for the javanet client.- See Also:
-
-
Method Details
-
exchange
default <I,O> io.micronaut.http.HttpResponse<O> exchange(io.micronaut.http.HttpRequest<I> request) -
exchange
default <I,O> io.micronaut.http.HttpResponse<O> exchange(io.micronaut.http.HttpRequest<I> request, Class<O> bodyType) -
exchange
-
exchange
<I,O> io.micronaut.http.HttpResponse<O> exchange(io.micronaut.http.HttpRequest<I> request, io.micronaut.core.type.Argument<O> bodyType) -
exchange
<I,O, io.micronaut.http.HttpResponse<O> exchangeE> (io.micronaut.http.HttpRequest<I> request, io.micronaut.core.type.Argument<O> bodyType, io.micronaut.core.type.Argument<E> errorType) -
getScheme
-
getPort
-
getURL
-