Class LRATestService

java.lang.Object
org.eclipse.microprofile.lra.tck.service.LRATestService

@ApplicationScoped public class LRATestService extends Object
  • Constructor Details

    • LRATestService

      public LRATestService()
  • Method Details

    • start

      public void start(URL deploymentURL)
    • stop

      public void stop()
    • getLRAClient

      public LRAClientOps getLRAClient()
    • getTCKSuiteTarget

      public jakarta.ws.rs.client.WebTarget getTCKSuiteTarget()
    • waitForCallbacks

      public void waitForCallbacks(URI lraId)
    • waitForRecovery

      public void waitForRecovery(URI lraId)
    • waitForEndPhaseReplay

      public void waitForEndPhaseReplay(URI lraId)
    • loadService

      public static <T> T loadService(Class<T> type)
    • assertHeaderPresent

      public void assertHeaderPresent(URI lraId, String path, String headerName)
    • processAfterLRAInfo

      public jakarta.ws.rs.core.Response processAfterLRAInfo(URI endedLRAId, LRAStatus status, Class<?> resourceClass, String path)
    • isLRAFinished

      public boolean isLRAFinished(URI lra, String resourceName)
      Returns whether the passed LRA and resource are in finished state.
      Parameters:
      lra - the LRA to test
      resourceName - name of the resource that the metrics parameter applies to
      Returns:
      whether or not an LRA has finished
    • isLRAFinished

      public boolean isLRAFinished(URI lra)
      Returns whether the passed LRA is in finished state.
      Parameters:
      lra - the LRA to test
      Returns:
      whether or not an LRA has finished