We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to mock this function:
class MyClass() { fun myFunction(argument: UShort): ByteArray { .... } }
var mocked: MyClass = mock(MyClass::class.java) doReturn(byteArrayOf()).`when`(mocked).myFunction(any())
When run test, this error occurred.
Cannot invoke "kotlin.UShort.unbox-impl()" java.lang.NullPointerException: Cannot invoke "kotlin.UShort.unbox-impl()"
The text was updated successfully, but these errors were encountered:
@pasta18 did you find a workaround?
Sorry, something went wrong.
@renannprado No, no workaround has been found yet.
I didn't mock it, because there was no way to mock the target method.
@pasta18 this may help in your case: #445 (comment)
In my case unfortunately it didn't.
Maybe #445 (comment)
No branches or pull requests
I want to mock this function:
When run test, this error occurred.
The text was updated successfully, but these errors were encountered: