|
MXUnit 2.1.3 (Generated: 09/27/2012) | ||||
FRAMES |
WEB-INF.cftags.componentmxunit.framework.PublicProxyMaker
public class PublicProxyMaker
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 |
---|
private string constructArgumentsTags([struct privateMethodStruct])
privateMethodStruct
- the structure of metadata for the private method under considerationprivate struct findMethodStruct(struct metadata, string methodName)
metadata
- a structure returned from getMetadatamethodName
- the method to search forpublic any handleDirectoryCreate(string dir)
dir
public any handleFileCreate(string fullFilePath, string output)
fullFilePath
output
public any handleFileDelete(string fullFilePath)
fullFilePath
public any handleObjectCreate(string cfcname)
cfcname
public any makePublic(any ObjectUnderTest, string privateMethodName, [string proxyMethodName=''])
ObjectUnderTest
- an instance of the object with a private method to be proxiedprivateMethodName
- name of the private method to be proxiedproxyMethodName
- 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) | ||||
FRAMES |