@groovy.transform.CompileStatic trait ControllerUnitTest
| Type | Name and description |
|---|---|
static java.lang.String |
ALL_CONTENT_TYPE |
static java.lang.String |
ATOM_XML_CONTENT_TYPE |
static java.lang.String |
FORM_CONTENT_TYPE |
static java.lang.String |
HAL_JSON_CONTENT_TYPE |
static java.lang.String |
HAL_XML_CONTENT_TYPE |
static java.lang.String |
HTML_CONTENT_TYPE |
static java.lang.String |
JSON_CONTENT_TYPE |
static java.lang.String |
MULTIPART_FORM_CONTENT_TYPE |
static java.lang.String |
TEXT_JSON_CONTENT_TYPE |
static java.lang.String |
TEXT_XML_CONTENT_TYPE |
static java.lang.String |
XHTML_CONTENT_TYPE |
static java.lang.String |
XML_CONTENT_TYPE |
| Type Params | Return Type | Name and description |
|---|---|---|
|
boolean |
disableControllerProxy() |
|
java.lang.String |
getBeanName(java.lang.Class<?> controllerClass) |
|
T |
getController() |
|
java.util.Map |
getModel()@return The model of the current controller |
|
java.lang.String |
getView()@return The view of the current controller |
|
void |
mockArtefact(java.lang.Class<?> controllerClass)Mocks a Grails controller class, providing the needed behavior and defining it in the ApplicationContext |
Mocks a Grails controller class, providing the needed behavior and defining it in the ApplicationContext
controllerClass - The controller class