-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
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
shouldNotThrow not working #128
Comments
I think this bug was introduced with commit 5f51c61 where the code if (e.isA(expectedException))
fail("Expected ${expectedException.javaObjectType} to not be thrown", "${expectedException.javaObjectType}", "${e.javaClass}") was removed. |
Thank you for reporting, I'll have a look. |
You're right, that was the problem. I've fixed it and released v1.45, you can try it out |
Yes, it was fixed with version 1.45. Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Kluent: 1.44
Kotlin: 1.3.11
shouldNotThrow
isn't working at all for me. The following code does not fail:I think the problem is in this line.
isAnyException()
performs a comparison ofjavaObjectType
of the current exception object withAnyException.javaObjectType
. These types are never the same.The text was updated successfully, but these errors were encountered: