Package io.micronaut.http.tck
Interface ServerUnderTest
- All Superinterfaces:
ApplicationContextProvider
,AutoCloseable
,Closeable
- All Known Implementing Classes:
EmbeddedServerUnderTest
An API for a Micronaut HTTP Server under test. An implementation can be Netty or AWS Lambda Handler.
- Since:
- 1.8.0
- Author:
- Sergio del Amo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The property name used to signify we want to use a non-blocking client. -
Method Summary
Modifier and TypeMethodDescriptiondefault <I,
O> HttpResponse<O> exchange
(HttpRequest<I> request) <I,
O> HttpResponse<O> exchange
(HttpRequest<I> request, Argument<O> bodyType) <I,
O, E> HttpResponse<O> exchange
(HttpRequest<I> request, Argument<O> bodyType, Argument<E> errorType) default <I,
O> HttpResponse<O> exchange
(HttpRequest<I> request, Class<O> bodyType) default <I,
O, E> HttpResponse<O> exchange
(HttpRequest<I> request, Class<O> bodyType, Class<E> errorType) 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
-
exchange
-
exchange
default <I,O, HttpResponse<O> exchangeE> (HttpRequest<I> request, Class<O> bodyType, Class<E> errorType) -
exchange
-
exchange
<I,O, HttpResponse<O> exchangeE> (HttpRequest<I> request, Argument<O> bodyType, Argument<E> errorType) -
getScheme
-
getPort
-
getURL
-