Created
July 18, 2011 12:30
-
-
Save bittersweetryan/1089372 to your computer and use it in GitHub Desktop.
Create mock objects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cffunction name="setUp" access="public" output="false" returntype="void"> | |
<cfscript> | |
variables.cfEvernote = createObject("component","com.714studios.cfevernote.CFEvernote"). | |
Init(variables.configArray[1],variables.configArray[2], | |
"sandbox.evernote.com", | |
"http://localhost/cfevernote/callback.cfm" | |
"#ExpandPath('../lib')#"); | |
variables.mockCFEvernote = variables.mockito.mock(variables.classLoader.create("com.sudios714.cfevernote.CFEvernote"). | |
Init("123","S1","232","sandbox.evernote.com","mock").getClass()); | |
variables.cfEvernote.setCFEvernote(mockCFEvernote); | |
</cfscript> | |
</cffunction> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment