Interface TestService
- All Known Implementing Classes:
TestServiceImplementation
,TestServiceImplementation
public interface TestService
A test service.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
Represents an event record, capturing name and arguments. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets the objects passed into the consumed eventsGets the events registered for consumption and consumedReturns the implementation's package.void
Attempts to get the element registry SPI.void
Attempts to get the element SPI.
-
Field Details
-
TEST_ELEMENT_EVENT_1
- See Also:
-
TEST_ELEMENT_EVENT_2
- See Also:
-
-
Method Details
-
getImplementationPackage
String getImplementationPackage()Returns the implementation's package.- Returns:
- the implementation's package name.
-
testElementSpi
void testElementSpi()Attempts to get the element SPI. -
testElementRegistrySpi
void testElementRegistrySpi()Attempts to get the element registry SPI. -
getConsumedEvents
Gets the events registered for consumption and consumed- Returns:
- A list of consumed events
-
getConsumedEventObjects
List<TestService.MethodEventRecord> getConsumedEventObjects()Gets the objects passed into the consumed events- Returns:
- the event objects
-