public class EmbeddedServerUnderTest extends Object implements ServerUnderTest
ServerUnderTest
implementation for EmbeddedServer
.Constructor and Description |
---|
EmbeddedServerUnderTest(Map<String,Object> properties) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<I,O> HttpResponse<O> |
exchange(HttpRequest<I> request,
Argument<O> bodyType) |
ApplicationContext |
getApplicationContext()
Resolves the
ApplicationContext for this class. |
Optional<Integer> |
getPort() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exchange, exchange
public <I,O> HttpResponse<O> exchange(HttpRequest<I> request, Argument<O> bodyType)
exchange
in interface ServerUnderTest
public ApplicationContext getApplicationContext()
ApplicationContextProvider
ApplicationContext
for this class.getApplicationContext
in interface ApplicationContextProvider
ApplicationContext
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
@NonNull public Optional<Integer> getPort()
getPort
in interface ServerUnderTest