Interface TestService

All Known Implementing Classes:
TestServiceImplementation, TestServiceImplementation

public interface TestService
A test service.
  • Field Details

    • SHARED_DEFAULT_ATTR

      static final String SHARED_DEFAULT_ATTR
      Shared attribute key used to verify that each element's @ElementDefaultAttribute is scoped to that element and does not bleed into sibling elements loaded from the same classpath.
      See Also:
    • SERVER_OVERRIDABLE_ATTR

      static final String SERVER_OVERRIDABLE_ATTR
      A server-level default declared in this non-element interface, simulating the production scenario where server framework code declares an @ElementDefaultAttribute (e.g. auth.enabled=false) while a custom element re-declares the same key with a different default (e.g. auth.enabled=true). The element's declaration must win when the operator has not explicitly overridden the key.
      See Also:
    • TEST_ELEMENT_EVENT_1

      static final String TEST_ELEMENT_EVENT_1
      See Also:
    • TEST_ELEMENT_EVENT_2

      static final String TEST_ELEMENT_EVENT_2
      See Also:
    • TEST_ELEMENT_EVENT_3

      static final String TEST_ELEMENT_EVENT_3
      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

      List<Event> 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