Mockito mocking parameterized class in Kotlin
If you try to mock parameterized class in Kotlin with Mockito val mockMyClass = mock<MyClass<String>>(MyClass<String>::class.java) »
If you try to mock parameterized class in Kotlin with Mockito val mockMyClass = mock<MyClass<String>>(MyClass<String>::class.java) »
// Interface from Java public interface JavaInterface<T> { void process(T var1); } // Class from Kotlin class KotlinClass : JavaInterface<List<String>> { override »
I noticed that calling some Android SDK method from Kotlin I got Platform Type instead of null-safety type even Android SDK .java file contains @Nullable annotation. »
Unresolved reference: JavaClass1 Unresolved reference: JavaClass2 Unresolved reference: JavaClass3 Unresolved reference: JavaClass4 Unresolved reference: JavaClass5 Unresolved reference: JavaClass6 Unresolved reference: JavaClass7 ... Some Java classes cannot be »