Class PortletTestContext

java.lang.Object
org.gatein.pc.test.unit.PortletTestContext

public class PortletTestContext extends Object
  • Constructor Details

  • Method Details

    • getTestName

      public String getTestName()
    • setInvoked

      public void setInvoked(JoinPoint joinPoint)
    • getActorId

      public String getActorId(JoinPointType joinPointType)
    • getResponse

      public Response getResponse()
    • updateResponse

      public void updateResponse(Response response)
      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

      public String rewriteURLForNode(String url) throws MalformedURLException
      Throws:
      MalformedURLException
    • getPayload

      public Map<String,Serializable> getPayload()
    • getResponseBody

      public byte[] getResponseBody()
    • getResponseHeaders

      public HashMap<String,org.apache.commons.httpclient.Header> getResponseHeaders()