MXUnit 2.1.3 (Generated: 09/27/2012)

mxunit.framework
Class PublicProxyMaker

WEB-INF.cftags.component
        extended by mxunit.framework.PublicProxyMaker
Direct Known Subclasses:
PublicProxyMaker

public class PublicProxyMaker
extends WEB-INF.cftags.component

makes private methods testable


Method Summary
private string constructArgumentsTags([struct privateMethodStruct])
          creates the cfargument tags, the method call to the private method, and the return statement for the component
private struct findMethodStruct(struct metadata, string methodName)
          returns the metadata struct for a given method name
 any handleDirectoryCreate(string dir)
 any handleFileCreate(string fullFilePath, string output)
 any handleFileDelete(string fullFilePath)
 any handleObjectCreate(string cfcname)
 any makePublic(any ObjectUnderTest, string privateMethodName, [string proxyMethodName=''])
          creates a public method proxy for the indicated private method for the passed-in object
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

constructArgumentsTags

private string constructArgumentsTags([struct privateMethodStruct])
creates the cfargument tags, the method call to the private method, and the return statement for the component

Parameters:
privateMethodStruct - the structure of metadata for the private method under consideration

findMethodStruct

private struct findMethodStruct(struct metadata, string methodName)
returns the metadata struct for a given method name

Parameters:
metadata - a structure returned from getMetadata
methodName - the method to search for

handleDirectoryCreate

public any handleDirectoryCreate(string dir)

Parameters:
dir

handleFileCreate

public any handleFileCreate(string fullFilePath, string output)

Parameters:
fullFilePath
output

handleFileDelete

public any handleFileDelete(string fullFilePath)

Parameters:
fullFilePath

handleObjectCreate

public any handleObjectCreate(string cfcname)

Parameters:
cfcname

makePublic

public any makePublic(any ObjectUnderTest, string privateMethodName, [string proxyMethodName=''])
creates a public method proxy for the indicated private method for the passed-in object

Parameters:
ObjectUnderTest - an instance of the object with a private method to be proxied
privateMethodName - name of the private method to be proxied
proxyMethodName - name of the proxy method name to be used; if not passed, defaults to the name of the private method prefixed with an underscore

MXUnit 2.1.3 (Generated: 09/27/2012)