File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Groovy stubs (and mocks) proxyInstance vs proxyDelegateInstance

 
Jeff Storey
Ranch Hand
Posts: 230
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the groovy StubFor and MockFor classes, can someone explain the difference between proxyInstance and proxyDelegateInstance and when to use which?

thanks,
Jeff
 
Jeff Storey
Ranch Hand
Posts: 230
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, nevermind, I got it. The proxyDelegateInstance needs to be used when passing the mock to a java object.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic