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

c# SetCompatibleTextRenderingDefault must be called before the first -

How to prevent logback from emitting repeated "Empty watch file list. Disabling" messages -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -