Class RenderPageAction
- java.lang.Object
-
- de.valtech.aecu.core.groovy.console.bindings.actions.page.RenderPageAction
-
-
Constructor Summary
Constructors Constructor Description RenderPageAction(BindingContext context, int statusCode, String textPresent, String textNotPresent)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MockHttpServletResponsecreateResponse()Creates the mocked response.StringdoAction(org.apache.sling.api.resource.Resource resource)Runs an action.
-
-
-
Constructor Detail
-
RenderPageAction
public RenderPageAction(BindingContext context, int statusCode, String textPresent, String textNotPresent)
Constructor- Parameters:
context- binding contextstatusCode- expected status codetextPresent- text that must be presenttextNotPresent- text that must not be present
-
-
Method Detail
-
doAction
public String doAction(org.apache.sling.api.resource.Resource resource) throws org.apache.sling.api.resource.PersistenceException, de.valtech.aecu.api.service.AecuException
Description copied from interface:ActionRuns an action.
-
createResponse
protected MockHttpServletResponse createResponse()
Creates the mocked response. This is needed to get the status code.- Returns:
- response
-
-