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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<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 theApplicationContextfor this class.getPort()getURL()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.http.tck.ServerUnderTest
exchange, exchange, exchange
-
Constructor Details
-
EmbeddedServerUnderTest
-
-
Method Details
-
exchange
- Specified by:
exchangein interfaceServerUnderTest
-
exchange
public <I,O, HttpResponse<O> exchangeE> (HttpRequest<I> request, Argument<O> bodyType, Argument<E> errorType) - Specified by:
exchangein interfaceServerUnderTest
-
getApplicationContext
Description copied from interface:ApplicationContextProviderResolves theApplicationContextfor this class.- Specified by:
getApplicationContextin interfaceApplicationContextProvider- Returns:
- The
ApplicationContext
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getScheme
- Specified by:
getSchemein interfaceServerUnderTest
-
getPort
- Specified by:
getPortin interfaceServerUnderTest
-
getURL
- Specified by:
getURLin interfaceServerUnderTest
-