@ApplicationScoped public class LRATestService extends Object
Constructor and Description |
---|
LRATestService() |
Modifier and Type | Method and Description |
---|---|
void |
assertHeaderPresent(URI lraId,
String path,
String headerName) |
LRAClientOps |
getLRAClient() |
javax.ws.rs.client.WebTarget |
getTCKSuiteTarget() |
boolean |
isLRAFinished(URI lra)
Returns whether the passed LRA is in finished state.
|
boolean |
isLRAFinished(URI lra,
String resourceName)
Returns whether the passed LRA and resource are in finished state.
|
static <T> T |
loadService(Class<T> type) |
javax.ws.rs.core.Response |
processAfterLRAInfo(URI endedLRAId,
LRAStatus status,
Class<?> resourceClass,
String path) |
void |
start(URL deploymentURL) |
void |
stop() |
void |
waitForCallbacks(URI lraId) |
void |
waitForEndPhaseReplay(URI lraId) |
void |
waitForRecovery(URI lraId) |
public void start(URL deploymentURL)
public void stop()
public LRAClientOps getLRAClient()
public javax.ws.rs.client.WebTarget getTCKSuiteTarget()
public void waitForCallbacks(URI lraId)
public void waitForRecovery(URI lraId)
public void waitForEndPhaseReplay(URI lraId)
public static <T> T loadService(Class<T> type)
public javax.ws.rs.core.Response processAfterLRAInfo(URI endedLRAId, LRAStatus status, Class<?> resourceClass, String path)
public boolean isLRAFinished(URI lra, String resourceName)
lra
- the LRA to testresourceName
- name of the resource that the metrics parameter applies topublic boolean isLRAFinished(URI lra)
lra
- the LRA to testCopyright © 2021 Eclipse Foundation. All rights reserved.