Add support for inline value classes when defining method's behavior
jose-silva-sumup opened this issue · 1 comments
jose-silva-sumup commented
Following scenario
@JvmInline
value class A(val value: String)
interface Foo {
fun bar(a: A, b: String)
}
mocker.every { mockFoo.bar(isAny(), isAny()) } returns Unit
throws java.lang.NullPointerException: Parameter specified as non-null is null: method bar, parameter a
This only happens when using constraints to define the method's behavior. It runs with success when replacing the constraints with values. It seems there's no support when using inline value classes, which would be a big plus.
SalomonBrys commented
Inline classes are supported in version 1.15.0
https://github.com/kosi-libs/MocKMP/releases/tag/v1.15.0