|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.springframework.webflow.test.execution.AbstractFlowExecutionTests
grails.test.WebFlowTestCase
abstract class WebFlowTestCase extends AbstractFlowExecutionTests
A test harness for testing Grails flows.
| Field Summary | |
|---|---|
protected ApplicationContext |
applicationContext
|
protected FlowBuilderServices |
flowBuilderServices
|
protected FlowDefinitionRegistry |
flowDefinitionRegistry
|
protected MockHttpServletRequest |
mockRequest
|
protected MockHttpServletResponse |
mockResponse
|
protected MockServletContext |
mockServletContext
|
protected MvcViewFactoryCreator |
viewCreator
|
| Method Summary | |
|---|---|
java.lang.Object
|
getFlow()
Subclasses should return the flow closure that within the controller. |
FlowDefinition
|
getFlowDefinition()
|
java.lang.String
|
getFlowId()
Subclasses should override to change flow id. |
FlowDefinition
|
registerFlow(java.lang.String flowId, groovy.lang.Closure flowClosure)
|
protected void
|
setUp()
|
protected ExternalContext
|
signalEvent(java.lang.String eventId)
Triggers a web flow event for the given eventId and returns the ExternalContext used to trigger the event. |
protected void
|
startFlow()
Initiates a web flow. |
protected void
|
tearDown()
|
| Field Detail |
|---|
protected ApplicationContext applicationContext
protected FlowBuilderServices flowBuilderServices
protected FlowDefinitionRegistry flowDefinitionRegistry
protected MockHttpServletRequest mockRequest
protected MockHttpServletResponse mockResponse
protected MockServletContext mockServletContext
protected MvcViewFactoryCreator viewCreator
| Method Detail |
|---|
java.lang.Object getFlow()
return new TestController().myFlow.
FlowDefinition getFlowDefinition()
java.lang.String getFlowId()
FlowDefinition registerFlow(java.lang.String flowId, groovy.lang.Closure flowClosure)
protected void setUp()
protected ExternalContext signalEvent(java.lang.String eventId)
protected void startFlow()
protected void tearDown()
Groovy Documentation