Package org.opentestfactory.test.harness
Class AbstractMicroserviceIntegrationTest
java.lang.Object
org.opentestfactory.test.harness.AbstractMicroServiceTestBase
org.opentestfactory.test.harness.AbstractMicroserviceIntegrationTest
This test base class adds a utility methods to check generated bus events.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
AbstractMicroServiceTestBase.ContentType -
Field Summary
FieldsFields inherited from class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
AUTH_TOKEN_KEY_SUFFIX, BUS_AUTH_TOKEN, BUS_BASE_URL, DELAY_BEFORE_ASYNC_REQUEST_SEQUENCE_VERIFY, DELAY_BEFORE_ASYNC_REQUEST_VERIFY, DELAY_FOR_SSH, EVENTBUS_BASE_KEY, mockServer, serviceAuthToken, SUBSCRIPTIONS_PATH, URL_KEY_SUFFIX -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMicroserviceIntegrationTest(int receiverPort, String busMockSubscriptionCfg, URL sutBaseUrl, AuthToken serviceAuthConfig) Complete initialization constructor : single bus spy convenience subscription version.AbstractMicroserviceIntegrationTest(int mockPort, URL sutBaseUrl, AuthToken serviceAuthToken, String... busMockSubscriptionCfg) -
Method Summary
Methods inherited from class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
getExpectedOutputReceiver, jsonRESTPost, mockServerWarmUp, postJSONToSUTendPoint, postYAMLToSUTendPoint, requestMatcher, sendTemplatedTestMessage, sendTestMessage, startClientAndServer, stopClientAndServer, subscriptionMappings, subscriptionPath, useTestResource
-
Field Details
-
busMockSubscriptionCfg
-
-
Constructor Details
-
AbstractMicroserviceIntegrationTest
public AbstractMicroserviceIntegrationTest(int receiverPort, String busMockSubscriptionCfg, URL sutBaseUrl, AuthToken serviceAuthConfig) Complete initialization constructor : single bus spy convenience subscription version.- Parameters:
receiverPort- receiver port : where expected (or unwanted) messages will be detected if they indeed happen.busMockSubscriptionCfg- subscription of the mock to the SUT bus to spy events (on assert on existing events).sutBaseUrl- base URL for the SUT (enpoint paths are relative to this)- See Also:
-
AbstractMicroserviceIntegrationTest
-
-
Method Details
-
subscribeToBus
- Throws:
URISyntaxExceptionIOException
-
unsubscribeToBus
@AfterEach public void unsubscribeToBus()
-