Class LRATestService
java.lang.Object
org.eclipse.microprofile.lra.tck.service.LRATestService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassertHeaderPresent(URI lraId, String path, String headerName) jakarta.ws.rs.client.WebTargetbooleanisLRAFinished(URI lra) Returns whether the passed LRA is in finished state.booleanisLRAFinished(URI lra, String resourceName) Returns whether the passed LRA and resource are in finished state.static <T> TloadService(Class<T> type) jakarta.ws.rs.core.ResponseprocessAfterLRAInfo(URI endedLRAId, LRAStatus status, Class<?> resourceClass, String path) voidvoidstop()voidwaitForCallbacks(URI lraId) voidwaitForEndPhaseReplay(URI lraId) voidwaitForRecovery(URI lraId)
-
Constructor Details
-
LRATestService
public LRATestService()
-
-
Method Details
-
start
-
stop
public void stop() -
getLRAClient
-
getTCKSuiteTarget
public jakarta.ws.rs.client.WebTarget getTCKSuiteTarget() -
waitForCallbacks
-
waitForRecovery
-
waitForEndPhaseReplay
-
loadService
-
assertHeaderPresent
-
processAfterLRAInfo
-
isLRAFinished
Returns whether the passed LRA and resource are in finished state.- Parameters:
lra- the LRA to testresourceName- name of the resource that the metrics parameter applies to- Returns:
- whether or not an LRA has finished
-
isLRAFinished
Returns whether the passed LRA is in finished state.- Parameters:
lra- the LRA to test- Returns:
- whether or not an LRA has finished
-