What It Is

IMPORTANT NOTE: MightyMock is currently being wired directly into MXUnit. These docs will be moved to http://wiki.mxunit.org


MightyMock is a simple lightweight framework for mocking component interaction in ColdFusion. It provides you the ability to easily and quickly define behaviors for dependencies, including both mocking and stubbing. When mocking, selective verification is possible, and when stubbing you can define return data or throw exceptions.

One slick feature of the MightyMock is the ability to match invocations by argument pattern. This gives you the flexibility to specify either literal arguments or patterns in your mock. More on this in the next section.