Index

A B C D E G H I J L M N O P R S T U V W Y 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

AbstractMicroserviceIntegrationTest - Class in org.opentestfactory.test.harness
This test base class adds a utility methods to check generated bus events.
AbstractMicroserviceIntegrationTest(int, String, URL, AuthToken) - Constructor for class org.opentestfactory.test.harness.AbstractMicroserviceIntegrationTest
Complete initialization constructor : single bus spy convenience subscription version.
AbstractMicroserviceIntegrationTest(int, URL, AuthToken, String...) - Constructor for class org.opentestfactory.test.harness.AbstractMicroserviceIntegrationTest
 
AbstractMicroServiceTestBase - Class in org.opentestfactory.test.harness
This class offers base microservice test primitives.
AbstractMicroServiceTestBase(int, URL, AuthToken) - Constructor for class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 
AbstractMicroServiceTestBase.ContentType - Enum Class in org.opentestfactory.test.harness
It so happens that YAML is not a supported content type for org.apache.http.entity.ContentType so we need to have our content type model here :/
apply(Request) - Method in class org.opentestfactory.test.harness.AuthToken
 
AUTH_TOKEN_KEY_SUFFIX - Static variable in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 
AuthToken - Class in org.opentestfactory.test.harness
Just a string typifier.
AuthToken(String) - Constructor for class org.opentestfactory.test.harness.AuthToken
 

B

basedOnMock(ClientAndServer) - Static method in class org.opentestfactory.test.harness.ExpectedOutputReceiver
Static factory method to create an initial based on the given mock server.
BUS_AUTH_TOKEN - Variable in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 
BUS_BASE_URL - Variable in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 
busMockSubscriptionCfg - Variable in class org.opentestfactory.test.harness.AbstractMicroserviceIntegrationTest
 

C

CFG_FILE_SYSTEM_PROPERTY_NAME - Static variable in class org.opentestfactory.test.harness.TestConfiguration
 
cleanStop(ClientAndServer) - Method in class org.opentestfactory.test.harness.MockServerHelper
 

D

DEFAULT_ENCODING - Static variable in class org.opentestfactory.test.harness.SUTSender
 
DELAY_BEFORE_ASYNC_REQUEST_SEQUENCE_VERIFY - Static variable in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 
DELAY_BEFORE_ASYNC_REQUEST_VERIFY - Static variable in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 
DELAY_FOR_SSH - Static variable in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 

E

EVENTBUS_BASE_KEY - Static variable in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 
ExpectedOutputReceiver - Class in org.opentestfactory.test.harness
This class may be used to define expectations on output messages from a given service.
ExpectedOutputReceiver(ClientAndServer) - Constructor for class org.opentestfactory.test.harness.ExpectedOutputReceiver
Create an original receiver instance based on a given mock server.
ExpectedOutputReceiver(ClientAndServer, List<HttpRequest>, List<HttpRequest>, JsonVariableMappings, boolean) - Constructor for class org.opentestfactory.test.harness.ExpectedOutputReceiver
Create a complete expectation definition.

G

getDurationFactorPercent() - Method in class org.opentestfactory.test.harness.TestConfiguration
 
getExpectedOutputReceiver() - Method in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
Create an ExpectedOutputReceiver instance with the base setup from this test class.
getMockHost() - Method in class org.opentestfactory.test.harness.TestConfiguration
 
getResponseBodyContent() - Method in class org.opentestfactory.test.harness.SUTSender
 
getServiceAuthToken(String) - Method in class org.opentestfactory.test.harness.TestConfiguration
Token to authenticate the test harness againts the front services of the orchestrator under test.
getServiceBaseURL(String) - Method in class org.opentestfactory.test.harness.TestConfiguration
Get the base URL for a given SUT orchestrator service.

H

header - Variable in enum class org.opentestfactory.test.harness.AbstractMicroServiceTestBase.ContentType
 
HTTP_CREATED - Static variable in class org.opentestfactory.test.harness.SUTSender
 
HTTP_OK - Static variable in class org.opentestfactory.test.harness.SUTSender
 

I

isEmpty() - Method in class org.opentestfactory.test.harness.AuthToken
 

J

JSON - Enum constant in enum class org.opentestfactory.test.harness.AbstractMicroServiceTestBase.ContentType
 
jsonRESTPost(String, URI, JsonVariableMappings, AuthToken) - Method in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
Send a JSON test input message to the SUT.
JsonVariableMappings - Class in org.opentestfactory.test.harness
Very simple key-value templating system.
JsonVariableMappings(Map<String, String>) - Constructor for class org.opentestfactory.test.harness.JsonVariableMappings
 

L

LOGGER - Static variable in class org.opentestfactory.test.harness.SUTSender
 

M

mappings() - Method in class org.opentestfactory.test.harness.ExpectedOutputReceiver
 
mockServer - Variable in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 
MockServerHelper - Class in org.opentestfactory.test.harness
 
MockServerHelper(Duration, Duration) - Constructor for class org.opentestfactory.test.harness.MockServerHelper
 
mockServerWarmUp() - Static method in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 

N

noMappings() - Static method in class org.opentestfactory.test.harness.JsonVariableMappings
 

O

org.opentestfactory.test.harness - package org.opentestfactory.test.harness
This package defines a minimalist toolkit to make OTF integration tests as plain as possible.

P

postJSONToSUTendPoint(String, String, JsonVariableMappings) - Method in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
Post a JSON test input to the specified endpoint.
postYAMLToSUTendPoint(String, String) - Method in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
Post a YAML test input to the specified endpoint.

R

replaceMappings(InputStream) - Method in class org.opentestfactory.test.harness.JsonVariableMappings
 
replaceMappings(String) - Method in class org.opentestfactory.test.harness.JsonVariableMappings
 
requestMatcher(String, String) - Method in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
Build a request matcher for the ExpectedOutputReceiver instance.

S

searchForStrayVariableConstructs(String) - Static method in class org.opentestfactory.test.harness.JsonVariableMappings
 
sendTemplatedTestMessage(String, JsonVariableMappings) - Method in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
Send a test input message built from template to the SUT bus.
sendTestMessage(String) - Method in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
Send a test input message to the SUT bus.
serviceAuthToken - Variable in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 
startClientAndServer() - Method in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 
stopClientAndServer() - Method in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 
subscribeToBus() - Method in class org.opentestfactory.test.harness.AbstractMicroserviceIntegrationTest
 
subscriptionMappings(String) - Method in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 
subscriptionPath(String) - Method in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 
SUBSCRIPTIONS_PATH - Static variable in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 
SUTSender - Class in org.opentestfactory.test.harness
 
SUTSender(Response) - Constructor for class org.opentestfactory.test.harness.SUTSender
 

T

TestConfiguration - Class in org.opentestfactory.test.harness
This class exposes test configuration data from the configuration property file.
thenExpectHttpCreateResponseCode() - Method in class org.opentestfactory.test.harness.SUTSender
 
thenExpectHttpOkResponseCode() - Method in class org.opentestfactory.test.harness.SUTSender
 

U

UnknownTestResource - Exception Class in org.opentestfactory.test.harness
 
UnknownTestResource(String) - Constructor for exception class org.opentestfactory.test.harness.UnknownTestResource
 
unsubscribeToBus() - Method in class org.opentestfactory.test.harness.AbstractMicroserviceIntegrationTest
 
URL_KEY_SUFFIX - Static variable in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 
useTestResource(String) - Method in class org.opentestfactory.test.harness.AbstractMicroServiceTestBase
 

V

value - Variable in class org.opentestfactory.test.harness.AuthToken
 
valueOf(String) - Static method in enum class org.opentestfactory.test.harness.AbstractMicroServiceTestBase.ContentType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.opentestfactory.test.harness.AbstractMicroServiceTestBase.ContentType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in class org.opentestfactory.test.harness.TestConfiguration
 
VALUES - Static variable in class org.opentestfactory.test.harness.TestConfiguration
Deprecated.
this GoF like static instance is OK at test runtime but rather painfull when testing the test harness. For this reason we'll switch to a static method.

W

waitAndVerifyExpectedCall(Duration) - Method in class org.opentestfactory.test.harness.ExpectedOutputReceiver
Wait some time to give time for callbacks, then verify if expected requests were received, and check that no unwanted request came.
waitForStart(ClientAndServer) - Method in class org.opentestfactory.test.harness.MockServerHelper
 
withAdditionalIntegerMapping(String, int) - Method in class org.opentestfactory.test.harness.JsonVariableMappings
 
withAdditionalStringMapping(String, String) - Method in class org.opentestfactory.test.harness.JsonVariableMappings
 
withExpectedRequests(HttpRequest...) - Method in class org.opentestfactory.test.harness.ExpectedOutputReceiver
 
withExpectedRequestTemplate(String, InputStream) - Method in class org.opentestfactory.test.harness.ExpectedOutputReceiver
 
withIgnoreArrayElementOrder() - Method in class org.opentestfactory.test.harness.ExpectedOutputReceiver
Create a receiver that ignores array element order.
withIntegerMapping(String, Integer) - Static method in class org.opentestfactory.test.harness.JsonVariableMappings
 
withMockAttachment(String) - Method in class org.opentestfactory.test.harness.ExpectedOutputReceiver
Tells the mockserver to serve said resource.
withStringMapping(String, String) - Static method in class org.opentestfactory.test.harness.JsonVariableMappings
 
withUnwantedRequests(HttpRequest...) - Method in class org.opentestfactory.test.harness.ExpectedOutputReceiver
 
withVariableMapping(String, String) - Method in class org.opentestfactory.test.harness.ExpectedOutputReceiver
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.

Y

YAML - Enum constant in enum class org.opentestfactory.test.harness.AbstractMicroServiceTestBase.ContentType
 
A B C D E G H I J L M N O P R S T U V W Y 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form