Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

RE: [groovy-user] Mocking Classes using Closures?

simonz

2008-08-24

Replies: Find Java Web Hosting

Author LoginPost Reply


Alexander Veit-5 wrote:
>
> If Bar is not final, you could define
>
> class MockBar extends Bar {
>  public void bar() {
>   // ...
>  }
> }
>
Thanks ... that's more or less what I have been doing. I was wondering if
there's any way to apply closures to reduce it to a 1 liner or something
similar.  Sounds like there's not - would be a great feature to have :-)

Cheers,

Simon.
--
Sent from the groovy - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.