Package io.micronaut.http.tck
Class EmbeddedServerUnderTest
java.lang.Object
io.micronaut.http.tck.EmbeddedServerUnderTest
- All Implemented Interfaces:
ApplicationContextProvider
,ServerUnderTest
,Closeable
,AutoCloseable
ServerUnderTest
implementation for EmbeddedServer
.- Since:
- 3.0.0
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from interface io.micronaut.http.tck.ServerUnderTest
BLOCKING_CLIENT_PROPERTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<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) Resolves theApplicationContext
for this class.getPort()
getURL()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.tck.ServerUnderTest
exchange, exchange, exchange
-
Constructor Details
-
EmbeddedServerUnderTest
-
-
Method Details
-
exchange
- Specified by:
exchange
in interfaceServerUnderTest
-
exchange
public <I,O, HttpResponse<O> exchangeE> (HttpRequest<I> request, Argument<O> bodyType, Argument<E> errorType) - Specified by:
exchange
in interfaceServerUnderTest
-
getApplicationContext
Description copied from interface:ApplicationContextProvider
Resolves theApplicationContext
for this class.- Specified by:
getApplicationContext
in interfaceApplicationContextProvider
- Returns:
- The
ApplicationContext
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getPort
- Specified by:
getPort
in interfaceServerUnderTest
-
getURL
- Specified by:
getURL
in interfaceServerUnderTest
-