Groovy Documentation

grails.test.mixin.webflow
[Groovy] Class WebFlowUnitTestMixin

java.lang.Object
  grails.test.mixin.support.GrailsUnitTestMixin
      grails.test.mixin.web.ControllerUnitTestMixin
          grails.test.mixin.webflow.WebFlowUnitTestMixin

class WebFlowUnitTestMixin
extends ControllerUnitTestMixin

A unit test mixin for testing Web Flow interactions

Authors:
Graeme Rocher
Since:
2.0


Property Summary
java.util.Map conversation

java.util.Map flow

java.util.Map flowMap

java.lang.String lastEventName

java.lang.String lastTransitionName

java.lang.String stateTransition

 
Method Summary
protected java.lang.Object methodMissing(java.lang.String name, java.lang.Object args)

Registers the end transition state of a web flow if it is returned as return success()

java.lang.Object mockController(java.lang.Class controllerClass)

java.lang.Object propertyMissing(java.lang.String name)

 
Methods inherited from class ControllerUnitTestMixin
bindGrailsWebRequest, cleanupGrailsWeb, clearGrailsWebRequest, configureGrailsWeb, getFlash, getModel, getParams, getSession, getView, mockCommandObject, mockController, testFor
 
Methods inherited from class GrailsUnitTestMixin
cleanupModifiedMetaClasses, defineBeans, deregisterMetaClassCleaner, initGrailsApplication, mockCodec, mockFor, mockForConstraintsTests, registerMetaClassRegistryWatcher, resetGrailsApplication, shouldFail, shouldFail, shutdownApplicationContext
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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()
 

Property Detail

conversation

java.util.Map conversation


flow

java.util.Map flow


flowMap

java.util.Map flowMap


lastEventName

java.lang.String lastEventName


lastTransitionName

java.lang.String lastTransitionName


stateTransition

java.lang.String stateTransition


 
Method Detail

methodMissing

protected java.lang.Object methodMissing(java.lang.String name, java.lang.Object args)
Registers the end transition state of a web flow if it is returned as return success()


mockController

@Override
java.lang.Object mockController(java.lang.Class controllerClass)


propertyMissing

java.lang.Object propertyMissing(java.lang.String name)


 

Groovy Documentation