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, waitexchange, exchangepublic <I,O> HttpResponse<O> exchange(HttpRequest<I> request, Argument<O> bodyType)
exchange in interface ServerUnderTestpublic ApplicationContext getApplicationContext()
ApplicationContextProviderApplicationContext for this class.getApplicationContext in interface ApplicationContextProviderApplicationContextpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException@NonNull public Optional<Integer> getPort()
getPort in interface ServerUnderTest