CFC Stub Generator

PDF HTML FlashPaper

Main

File: CFCStubGenerator.cfc Author: Brian Kotek Site: http://www.briankotek.com/blog

Usage: This CFC uses a simple text file to create stubs for CFCs and CFUnit/CFCUnit unit test files. Just create an instance of the component, and call the createStubs() method. The easiest way it to run the index.cfm configuration screen included in this zip file. The CFC and CFUnit files will all be created in the same directory as the text file. Any CFC paths or folder paths will be created using the path to the text file directory as well.

The format of the text file is:

User getUserName getAddress

Invoice calculateTotal addLineItem

This is just a component name and the names of the methods that you want stubbed out. Separate the components with 2 carriage returns.

This file and related examples are available at my blog at www.briankotek.com/blog.