| Author |
Groovy stubs (and mocks) proxyInstance vs proxyDelegateInstance
|
Jeff Storey
Ranch Hand
Joined: Apr 07, 2007
Posts: 230
|
|
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
Software Developer
[url]http://jeffastorey.blogspot.com[/url]
|
 |
Jeff Storey
Ranch Hand
Joined: Apr 07, 2007
Posts: 230
|
|
|
Ah, nevermind, I got it. The proxyDelegateInstance needs to be used when passing the mock to a java object.
|
 |
 |
|
|
subject: Groovy stubs (and mocks) proxyInstance vs proxyDelegateInstance
|
|
|