Login

    Register

PROJECT CATEGORIES

 

CFEasyMock
Project Home Blog Forums Known Issues Contact Project

Author: Michael Steele (All RIAForge projects by this author)
Last Updated: May 6, 2008 7:45 PM
Version: 1.1.001
Views: 2201
Downloads: 140
License: Apache License, Version 2

Description:

CFEasyMock allows you to not only create simple mock objects for use in unit testing frameworks like cf[c]Unit and MXUnit, but also actually verify the behaviour of functions under test when interacting with the mock(s).

Behavioural mocks allow you to:
1. Declare the expected behaviour of your function under test.
2. Record the actual behavior of your function under test.
3. Verify that the expected and actual behaviours match.

This is very useful if you have methods that don't return values, or have complex logic in your function under test.

Upcoming Features:
Stubbing vs. Proxy-Pass-Through: The ability to select some functions in the mock to actually call functions in the real object. Would allow you to selectively mock at the function level.

Recent Blog Entries:

Requirements:

CFEasyMock is bundled with the CF8 only compatible version of the reflect project.

The CF7 version (1.0beta) is available via SVN. You can obtain the CF7 version of the reflect package from the reflect.riaforge.org

Issue Tracker:

ID ISSUE STATUS UPDATED
4 Error if CFC has no methods Closed 04/18/08 5:09 PM
3 reflect.Proxy typo Closed 04/17/08 7:57 PM
2 expect() differences Closed 04/07/08 6:28 PM
1 reflect.Proxy Recusion Bug Fixed 04/03/08 2:57 PM

View All Issues

To enter issues for this (or any other) project, you must be logged in.

Subversion Access:

You may access this project's Subversion repository with your client here: http://svn.riaforge.org/cfeasymock.

To view this repository with your browser, go here: http://cfeasymock.riaforge.org/index.cfm?event=page.svnbrowse.

You may download the latest set of files from Subversion as a zip file.

Anonymous users have read access to the repository while the administrator has write access.

This project is sharing its code via Subversion. Subversion is an open source source control method. You may find more information about Subversion here: http://subversion.tigris.org/