@Trait @CompileStatic trait ControllerUnitTest<T> extends Object implements GrailsWebUnitTest, ParameterizedGrailsUnitTest<T>
Type | Name and description |
---|---|
static String |
ALL_CONTENT_TYPE |
static String |
ATOM_XML_CONTENT_TYPE |
static String |
FORM_CONTENT_TYPE |
static String |
HAL_JSON_CONTENT_TYPE |
static String |
HAL_XML_CONTENT_TYPE |
static String |
HTML_CONTENT_TYPE |
static String |
JSON_CONTENT_TYPE |
static String |
MULTIPART_FORM_CONTENT_TYPE |
static String |
TEXT_JSON_CONTENT_TYPE |
static String |
TEXT_XML_CONTENT_TYPE |
static String |
XHTML_CONTENT_TYPE |
static String |
XML_CONTENT_TYPE |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
disableControllerProxy() |
|
String |
getBeanName(Class<?> controllerClass) |
|
T |
getController() |
|
Map |
getModel()
|
|
String |
getView()
|
|
void |
mockArtefact(Class<?> controllerClass) Mocks a Grails controller class, providing the needed behavior and defining it in the ApplicationContext |