Raul
03/24/2023, 4:41 PMclass A(){
val flow: Flow<Boolean> = flowOf(true)
}
class B (a: A) {
val otherFlow = a.flow
}
and in one test:
@RelaxedMockK //or MockK, I've tried both
protected lateinit var a: A
protected lateinit var b: B
@Before
fun setUp() {
MockKAnnotations.init(this, relaxed = true)
b = B(a)
}
This is working fine with MockK 1.13.3
, but after updating to 1.13.4
I'm getting the error
java.lang.IncompatibleClassChangeError: Superclass kotlinx.coroutines.flow.Flow of kotlinx.coroutines.flow.Flow_1_Proxy is an interface (declaration of 'kotlinx.coroutines.flow.Flow_1_Proxy' appears in /data/user/0/com.mypackage.myapp.debug/app_dxmaker_cache/Generated_2115397682.jar)
Am I missing something? 𤷠š¤Jonas
03/27/2023, 12:07 PM1.13.3
for the time being. Will check again later if it is the exact same issue.java.lang.IncompatibleClassChangeError: Superclass kotlinx.coroutines.flow.StateFlow of kotlinx.coroutines.flow.StateFlow_1_Proxy is an interface (declaration of 'kotlinx.coroutines.flow.StateFlow_1_Proxy' appears in
Mattia Tommasone
04/05/2023, 7:27 AMJonas
04/05/2023, 7:30 AM1.8.10
atmMattia Tommasone
04/05/2023, 7:43 AMJonas
04/05/2023, 7:47 AM