public interface WarpContext
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(WarpGroup group)
Registers group to be inspected
|
void |
addUnmatchedRequest(Request request)
Records that given request was not matched by any observer.
|
Collection<WarpGroup> |
getAllGroups()
Returns all registered groups
|
int |
getExpectedRequestCount()
Return the number of requests expected in all groups of this context
|
Exception |
getFirstException()
Returns first exception observed during Warp execution.
|
org.jboss.arquillian.test.spi.TestResult |
getFirstNonSuccessfulResult()
Returns first observed non-successful result.
|
WarpGroup |
getGroup(Object identifier)
Returns the request group based on its identifier under which it was registered using
addGroup(WarpGroup). |
Collection<RequestObserverChainManager> |
getObserverChainManagers()
Get all registered services for
RequestObserverChainManager. |
WarpResult |
getResult()
Exports response status as
WarpResult to be available to user. |
SynchronizationPoint |
getSynchronization()
Returns the point of synchronization of current Warp execution.
|
List<Request> |
getUnmatchedRequests()
Return the list of requests which weren't matched by any observer.
|
void |
initialize(org.jboss.arquillian.core.spi.ServiceLoader serviceLoader)
Initializes Warp context by available services.
|
void |
pushException(Exception exception)
Pushes exception observer during Warp execution to context.
|
void |
pushResponsePayload(ResponsePayload payload)
Pushes
ResponsePayload to context. |
void addGroup(WarpGroup group)
Collection<WarpGroup> getAllGroups()
WarpGroup getGroup(Object identifier)
addGroup(WarpGroup).identifier - void pushResponsePayload(ResponsePayload payload)
Pushes ResponsePayload to context.
Context should ensure propagating ResponsePayload to associated WarpGroup based on the generated serial
identifier (RequestPayload.getSerialId()).
void pushException(Exception exception)
Exception getFirstException()
SynchronizationPoint getSynchronization()
org.jboss.arquillian.test.spi.TestResult getFirstNonSuccessfulResult()
WarpResult getResult()
WarpResult to be available to user.void initialize(org.jboss.arquillian.core.spi.ServiceLoader serviceLoader)
Initializes Warp context by available services.
Note: WarpContext is used in another thread, that's why it can't access injected ServiceLoader directly.
Collection<RequestObserverChainManager> getObserverChainManagers()
RequestObserverChainManager.int getExpectedRequestCount()
void addUnmatchedRequest(Request request)
For debugging purposes.
Copyright © 2019 JBoss by Red Hat. All rights reserved.