Package org.gatein.pc.test.unit
Class PortletTestContext
java.lang.Object
org.gatein.pc.test.unit.PortletTestContext
- Version:
- $Revision: 1.1 $
- Author:
- Julien Viet
-
Constructor Summary
ConstructorsConstructorDescriptionPortletTestContext(String testName, PortletTestCase portletTestCase, DriverContext driverContext) -
Method Summary
Modifier and TypeMethodDescriptiongetActorId(JoinPointType joinPointType) intbyte[]rewriteURLForNode(String url) voidsetInvoked(JoinPoint joinPoint) voidupdateResponse(Response response) Update the context response with the provided response.
-
Constructor Details
-
PortletTestContext
public PortletTestContext(String testName, PortletTestCase portletTestCase, DriverContext driverContext)
-
-
Method Details
-
getTestName
-
setInvoked
-
getActorId
-
getResponse
-
updateResponse
Update the context response with the provided response. The update will occur if there is no previous existing response. If there is an existing response this one will be overwrited only if it is not a failure and the provided response is a failure.- Parameters:
response- the new response
-
getRequestCount
public int getRequestCount() -
rewriteURLForNode
- Throws:
MalformedURLException
-
getPayload
-
getResponseBody
public byte[] getResponseBody() -
getResponseHeaders
-