Ninja-Squad/springmockk

Is there any workaround to use @MockkBean on a Kotlin interface property?

sillyquestion opened this issue · 1 comments

Is there any workaround to use @MockkBean on a Kotlin interface property?
At present when I try it I get an error message 'This annotation is not applicable to target 'member property without backing field or delegate''

Hy @sillyquestion. I'm not sure what your goal is. The MockkBean annotation is used to annotate a property of a JUnit test class. JUnit tests can't be interfaces.