@groovy.transform.Trait @groovy.transform.CompileStatic trait ControllerUnitTest<T> extends java.lang.Object implements GrailsWebUnitTest, ParameterizedGrailsUnitTest<T>
Modifiers | Name | Description |
---|---|---|
private static java.lang.String |
ALL_CONTENT_TYPE |
|
private static java.lang.String |
ATOM_XML_CONTENT_TYPE |
|
private static java.lang.String |
FORM_CONTENT_TYPE |
|
private static java.lang.String |
HAL_JSON_CONTENT_TYPE |
|
private static java.lang.String |
HAL_XML_CONTENT_TYPE |
|
private static java.lang.String |
HTML_CONTENT_TYPE |
|
private static java.lang.String |
JSON_CONTENT_TYPE |
|
private static java.lang.String |
MULTIPART_FORM_CONTENT_TYPE |
|
private static java.lang.String |
TEXT_JSON_CONTENT_TYPE |
|
private static java.lang.String |
TEXT_XML_CONTENT_TYPE |
|
private static java.lang.String |
XHTML_CONTENT_TYPE |
|
private static java.lang.String |
XML_CONTENT_TYPE |
|
private T |
_proxyInstance |
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()
|
|
java.lang.String |
getView()
|
|
void |
mockArtefact(java.lang.Class<?> controllerClass) Mocks a Grails controller class, providing the needed behavior and defining it in the ApplicationContext |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Mocks a Grails controller class, providing the needed behavior and defining it in the ApplicationContext
controllerClass
- The controller class