Package io.micronaut.http.tck
Class EmbeddedServerUnderTest
java.lang.Object
io.micronaut.http.tck.EmbeddedServerUnderTest
- All Implemented Interfaces:
io.micronaut.context.ApplicationContextProvider,ServerUnderTest,Closeable,AutoCloseable
ServerUnderTest implementation for EmbeddedServer.- Since:
- 3.0.0
-
Field Summary
Fields inherited from interface io.micronaut.http.tck.ServerUnderTest
BLOCKING_CLIENT_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<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) io.micronaut.context.ApplicationContextgetPort()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
public <I,O> io.micronaut.http.HttpResponse<O> exchange(io.micronaut.http.HttpRequest<I> request, io.micronaut.core.type.Argument<O> bodyType) - Specified by:
exchangein interfaceServerUnderTest
-
exchange
public <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) - Specified by:
exchangein interfaceServerUnderTest
-
getApplicationContext
public io.micronaut.context.ApplicationContext getApplicationContext()- Specified by:
getApplicationContextin interfaceio.micronaut.context.ApplicationContextProvider
-
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
-