Package io.micronaut.http.server.tck
Class EmbeddedServerUnderTest
- java.lang.Object
-
- io.micronaut.http.server.tck.EmbeddedServerUnderTest
-
- All Implemented Interfaces:
io.micronaut.context.ApplicationContextProvider,ServerUnderTest,java.io.Closeable,java.lang.AutoCloseable
public class EmbeddedServerUnderTest extends java.lang.Object implements ServerUnderTest
ServerUnderTestimplementation forEmbeddedServer.- Since:
- 3.0.0
-
-
Constructor Summary
Constructors Constructor Description EmbeddedServerUnderTest(java.util.Map<java.lang.String,java.lang.Object> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()<I,O>
io.micronaut.http.HttpResponse<O>exchange(io.micronaut.http.HttpRequest<I> request, io.micronaut.core.type.Argument<O> bodyType)io.micronaut.context.ApplicationContextgetApplicationContext()java.util.Optional<java.lang.Integer>getPort()-
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.server.tck.ServerUnderTest
exchange, exchange
-
-
-
-
Method Detail
-
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
-
getApplicationContext
public io.micronaut.context.ApplicationContext getApplicationContext()
- Specified by:
getApplicationContextin interfaceio.micronaut.context.ApplicationContextProvider
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
getPort
@NonNull public java.util.Optional<java.lang.Integer> getPort()
- Specified by:
getPortin interfaceServerUnderTest
-
-