or

1/ dont provide impl of the mocked class
2/ inject interface
3/ configure fallbackInjector



Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-05-27 23:43 GMT+02:00 hwaastad <[email protected]>:

> Hi,
> probably easier said than done.....at least for me :-)
> The only way it's working right now is.
>
> 1. mock implementation
> 2. inject implementation and not interface of the class to be mocked in
> class-in-test
> 3. skip mockitoannotations.initmocks(this)
>
> There are almost a billion ways of container testing using openejb
> now...like a swiss army knife :-)
>
> br
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/OpenEJB-TomEE-and-mocking-tp4669665p4669698.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to