Programmatically create a Mockito SpyBean of a given Class

309 Views Asked by At

My abstract test needs to create a SpyBean of a defined class within the concrete implementation and I do not want the implementation or the "user" to have to add the @SpyBean annotation.

How can I programmatically create a SpyBean of a given Class without using the @SpyBean annotation?

0

There are 0 best solutions below