mocking - mockito for spring components without interface -


i have used mockito mocking @autowired injection , works fine interface based injection

if try mock spring @component ( not implement interface ) , mocking fails.

is possible mock such component have @component annotation not implementing interface ?


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -