Class MockServer
java.lang.Object
de.gematik.test.tiger.mockserver.lifecycle.LifeCycle
de.gematik.test.tiger.mockserver.netty.MockServer
-
Field Summary
Fields inherited from class de.gematik.test.tiger.mockserver.lifecycle.LifeCycle
bossGroup, httpState, serverServerBootstrap, workerGroup -
Constructor Summary
ConstructorsConstructorDescriptionMockServer(MockServerConfiguration configuration, Integer... localPorts) Start the instance using the ports provided -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConnectionWithStatus(SocketAddress socketAddress, TigerConnectionStatus status) addRoute(Expectation expectation) voidremoveExpectation(String expectationId) voidremoveRemoteAddress(SocketAddress socketAddress) voidMethods inherited from class de.gematik.test.tiger.mockserver.lifecycle.LifeCycle
bindServerPorts, close, getBossGroup, getConfiguration, getEventLoopGroup, getHttpState, getLocalPort, getLocalPorts, getPort, getScheduler, getServerChannelFutures, getServerServerBootstrap, getStopFuture, getStopping, getWorkerGroup, isRunning, startedServer, stop, stopAsync
-
Constructor Details
-
MockServer
Start the instance using the ports provided- Parameters:
localPorts- the local port(s) to use, use 0 or no vararg values to specify any free port
-
-
Method Details
-
getRemoteAddress
-
removeExpectation
-
retrieveActiveExpectations
-
addConnectionWithStatus
-
getOpenConnections
-
removeRemoteAddress
-
addRoute
-
waitForAllParsingTasksToBeFinished
public void waitForAllParsingTasksToBeFinished() -
getRemoteSocket
-
getActionHandler
-
getConnectionStatusMap
-
getServerSslContextFactory
-
getClientSslContextFactory
-
getInfiniteLoopChecker
-