Class Helper
java.lang.Object
com.adaptris.tester.runtime.helpers.Helper
- All Implemented Interfaces:
Closeable,AutoCloseable
Abstract class for helper implementation.
Helper is concept that allows you to start up service to use during tests, for example: WireMock.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHelperProperty(String key, String value) Adds properties to helper properties, they are resolved in the service config.Helper properties should be set during initialisation, they are resolved in the service config.abstract voidinit(ServiceTestConfig config) Implementations initialise service so its usable in tests, all properties for connectivity should also be set usingaddHelperProperty(String, String).
-
Constructor Details
-
Helper
public Helper()
-
-
Method Details
-
init
Implementations initialise service so its usable in tests, all properties for connectivity should also be set usingaddHelperProperty(String, String).- Parameters:
config- The service tester config- Throws:
ServiceTestException
-
getHelperProperties
Helper properties should be set during initialisation, they are resolved in the service config.Useful if you use something like the
DynamicPortProviderto set a services port- Returns:
- Map of helper properties added.
-
addHelperProperty
Adds properties to helper properties, they are resolved in the service config.Useful if you use something like the
DynamicPortProviderto set a services port- Parameters:
key- Helper property keyvalue- Helper property value
-