Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 4th, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <cffunction name="setUp" access="public" output="false" returntype="void">
  2.         <cfscript>
  3.         variables.cfEvernote = createObject("component","com.714studios.cfevernote.CFEvernote").
  4.                                                         Init(variables.configArray[1],variables.configArray[2],
  5.                                                                  "sandbox.evernote.com",
  6.                                                                  "http://localhost/cfevernote/callback.cfm"
  7.                                                                  "#ExpandPath('../lib')#");
  8.        
  9.         variables.mockCFEvernote = variables.mockito.mock(variables.classLoader.create("com.sudios714.cfevernote.CFEvernote").
  10.                                                            Init("123","S1","232","sandbox.evernote.com","mock").getClass());
  11.        
  12.         variables.cfEvernote.setCFEvernote(mockCFEvernote);
  13.         </cfscript>            
  14. </cffunction>