I'm writing new features in Kotlin but some stuff are already wrote in Java.
I'm writing tests in Mockito(Kotlin) but Mockito has problem with final class so I created:
annotation class Mockable {}
And added to Gradle-build:
apply plugin: 'kotlin-allopen'
allOpen {
annotation('com.Mockable')
}
So using this annotation class I can mock Kotlin class.
How I can use this annotation in Java class ?
@Mockable?