java - How to spy an EJB with mockito? -


if normal classes it's @spy classtobespied class = new classtobespied(); ejb? possible doing without having use embedded web server? in advance.

you can spy ejb classes, way won't have standard ejb features, transactions. behave "normal" java object, created outside ejb context.


Comments

Popular posts from this blog

c++11 - Intel compiler and "cannot have an in-class initializer" when using constexpr -

rest - Spring boot: Request method 'PUT' not supported -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -