Package com.adobe.aio.event.management
Class RegistrationServiceTester
- java.lang.Object
-
- com.adobe.aio.event.management.RegistrationServiceTester
-
public class RegistrationServiceTester extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
DELIVERY_TYPE_JOURNAL
static String
DELIVERY_TYPE_WEBHOOK
protected org.slf4j.Logger
logger
protected RegistrationService
registrationService
static String
TEST_DESCRIPTION
protected Workspace
workspace
-
Constructor Summary
Constructors Constructor Description RegistrationServiceTester()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Registration
assertRegistrationCreatedOrUpdatedResponseWithEventsOfInterest(RegistrationCreateModel.Builder registrationInputModelBuilder, Supplier<Optional<Registration>> registrationSupplier)
Registration
createOrUpdateJournalRegistration(String registrationName, String providerId, String eventCode)
Registration
createOrUpdateRegistration(RegistrationCreateModel.Builder registrationInputModelBuilder)
Registration
createOrUpdateRuntimeWebhookRegistration(String registrationName, String providerId, String eventCode, String runtimeAction)
void
deleteRegistration(String registrationId)
RegistrationService
getRegistrationService()
static EventsOfInterestInputModel.Builder
getTestEventsOfInterestBuilder(String providerId, String eventCode)
-
-
-
Field Detail
-
TEST_DESCRIPTION
public static final String TEST_DESCRIPTION
- See Also:
- Constant Field Values
-
DELIVERY_TYPE_JOURNAL
public static final String DELIVERY_TYPE_JOURNAL
- See Also:
- Constant Field Values
-
DELIVERY_TYPE_WEBHOOK
public static final String DELIVERY_TYPE_WEBHOOK
- See Also:
- Constant Field Values
-
logger
protected final org.slf4j.Logger logger
-
workspace
protected final Workspace workspace
-
registrationService
protected final RegistrationService registrationService
-
-
Method Detail
-
getRegistrationService
public RegistrationService getRegistrationService()
-
getTestEventsOfInterestBuilder
public static EventsOfInterestInputModel.Builder getTestEventsOfInterestBuilder(String providerId, String eventCode)
-
createOrUpdateJournalRegistration
public Registration createOrUpdateJournalRegistration(String registrationName, String providerId, String eventCode)
-
createOrUpdateRuntimeWebhookRegistration
public Registration createOrUpdateRuntimeWebhookRegistration(String registrationName, String providerId, String eventCode, String runtimeAction)
-
createOrUpdateRegistration
public Registration createOrUpdateRegistration(RegistrationCreateModel.Builder registrationInputModelBuilder)
-
assertRegistrationCreatedOrUpdatedResponseWithEventsOfInterest
public Registration assertRegistrationCreatedOrUpdatedResponseWithEventsOfInterest(RegistrationCreateModel.Builder registrationInputModelBuilder, Supplier<Optional<Registration>> registrationSupplier)
-
deleteRegistration
public void deleteRegistration(String registrationId)
-
-