private val dummyPacket = mockk<RtpPacket> {
every { this@mockk getProperty "payloadType" } returns originalPayloadType
every { this@mockk getProperty "ssrc" } returns originalSsrc
}
bbaldino
07/25/2019, 9:12 PM
i've tried using
mockkClass
instead, which appears to be working better, but still fails for one of the properties. this property is held in the parent class, would that have any affect? it's also of type
byte[]
, would that be an issue?
bbaldino
07/25/2019, 9:18 PM
maybe also notable is that this property is in a parent java class?
bbaldino
07/26/2019, 6:06 PM
it looks like this is related to a property in a java parent? i can stub out a property in a kotlin class, a property in a kotlin parent class of the class, but not a property in a java parent class