|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
groovy.util.GroovyTestCase
grails.test.GrailsUnitTestCase
grails.test.MvcUnitTestCase
grails.test.ControllerUnitTestCase
public class ControllerUnitTestCase
Field Summary | |
---|---|
protected Object |
controller
|
Fields inherited from class grails.test.MvcUnitTestCase |
---|
forwardArgs, mockFlash, mockParams, mockRequest, mockResponse, mockSession, redirectArgs, renderArgs, webRequest |
Fields inherited from class groovy.util.GroovyTestCase |
---|
log, TEST_SCRIPT_NAME_PREFIX |
Constructor Summary | |
---|---|
ControllerUnitTestCase()
|
|
ControllerUnitTestCase(Class controllerClass)
|
Method Summary | |
---|---|
protected groovy.lang.MetaClass |
$getStaticMetaClass()
|
Class |
getControllerClass()
|
groovy.lang.MetaClass |
getMetaClass()
|
Object |
getProperty(String property)
|
Object |
invokeMethod(String method,
Object arguments)
|
protected Object |
mockCommandObject(Class clazz)
|
protected Object |
newInstance()
|
void |
setMetaClass(groovy.lang.MetaClass mc)
|
void |
setProperty(String property,
Object value)
|
protected void |
setUp()
|
protected void |
setXmlRequestContent(groovy.lang.Closure c)
|
protected void |
setXmlRequestContent(String content)
|
protected void |
setXmlRequestContent(String encoding,
groovy.lang.Closure c)
|
protected void |
setXmlRequestContent(String encoding,
String content)
|
Methods inherited from class grails.test.MvcUnitTestCase |
---|
getTestClass, reset, tearDown |
Methods inherited from class groovy.util.GroovyTestCase |
---|
assertArrayEquals, assertContains, assertContains, assertEquals, assertEquals, assertEquals, assertInspect, assertLength, assertLength, assertLength, assertScript, assertToString, fixEOLs, getMethodName, getName, getTestClassName, notYetImplemented, notYetImplemented, shouldFail, shouldFail, shouldFailWithCause |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Object controller
Constructor Detail |
---|
public ControllerUnitTestCase()
public ControllerUnitTestCase(Class controllerClass)
Method Detail |
---|
public groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
getMetaClass
in class MvcUnitTestCase
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
setMetaClass
in class MvcUnitTestCase
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
invokeMethod
in class MvcUnitTestCase
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
getProperty
in class MvcUnitTestCase
public void setProperty(String property, Object value)
setProperty
in interface groovy.lang.GroovyObject
setProperty
in class MvcUnitTestCase
protected void setUp()
setUp
in class GrailsUnitTestCase
public Class getControllerClass()
protected Object mockCommandObject(Class clazz)
protected void setXmlRequestContent(String content)
protected void setXmlRequestContent(String encoding, String content)
protected void setXmlRequestContent(groovy.lang.Closure c)
protected void setXmlRequestContent(String encoding, groovy.lang.Closure c)
protected Object newInstance()
newInstance
in class MvcUnitTestCase
protected groovy.lang.MetaClass $getStaticMetaClass()
$getStaticMetaClass
in class MvcUnitTestCase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |