Uses of Class
org.opentestfactory.test.harness.ExpectedOutputReceiver
-
Uses of ExpectedOutputReceiver in org.opentestfactory.test.harness
Methods in org.opentestfactory.test.harness that return ExpectedOutputReceiverModifier and TypeMethodDescriptionstatic ExpectedOutputReceiverExpectedOutputReceiver.basedOnMock(org.mockserver.integration.ClientAndServer mockServer) Static factory method to create an initial based on the given mock server.protected ExpectedOutputReceiverAbstractMicroServiceTestBase.getExpectedOutputReceiver()Create anExpectedOutputReceiverinstance with the base setup from this test class.ExpectedOutputReceiver.waitAndVerifyExpectedCall(Duration delay) Wait some time to give time for callbacks, then verify if expected requests were received, and check that no unwanted request came.ExpectedOutputReceiver.withExpectedRequests(org.mockserver.model.HttpRequest... expectedRequests) ExpectedOutputReceiver.withExpectedRequestTemplate(String path, InputStream bodyStream) ExpectedOutputReceiver.withIgnoreArrayElementOrder()Create a receiver that ignores array element order.ExpectedOutputReceiver.withMockAttachment(String attachmentResourceName) Tells the mockserver to serve said resource.ExpectedOutputReceiver.withUnwantedRequests(org.mockserver.model.HttpRequest... unwantedRequests) ExpectedOutputReceiver.withVariableMapping(String key, String value) Add variable mappings to build expected requests. the variable must be inserted on its own line as #{key} as the value of a json property.