@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.
Following scenario
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.