Deprecate catchThrowableOfType(ThrowingCallable, Class) in favor of catchThrowableOfType(Class, ThrowingCallable)#2823
Conversation
|
For the documentation what should I do? Should I copy paste the same documentation as for the other method? |
|
Yes, I'd copy the existing documentation. |
Should I also mention the new method in the old methods description? |
Yes, you could add a |
|
Now for unit tests should I also use similar unit tests as the old methods do? Or should I change the method calls in the tests to the new method? |
cfd47ea to
2ade6d5
Compare
So I'll do the second thing? |
Yes, changing the method calls in the tests to the new method is fine. Sorry for the late feedback! |
scordio
left a comment
There was a problem hiding this comment.
As per my comment, please remove the unsupported attributes so that the build can go forward.
2ade6d5 to
67497c7
Compare
|
I don't understand why some of the checks are failing |
|
It's caused by the To fix it, you need to add new entry point methods in |
Thank you, I had overlooked the |
|
@scordio Could you please approve the workflows? Thank you. |
|
Technically speaking, the PR is not something "Kotlin requires". So I would suggest renaming the PR (and commits) to something like |
|
I agree with @vlsi, also mentioned in #2821 (comment):
PR renamed. |
catchThrowableOfType ThrowingCallable argument to the last position
|
Bump |
38c7b4b to
3cde5bf
Compare
|
We should also add a Kotlin-based test as the whole topic started from there. I'll take care of it. |
catchThrowableOfType ThrowingCallable argument to the last positioncatchThrowableOfType(Class, ThrowingCallable) overload
catchThrowableOfType(Class, ThrowingCallable) overloadcatchThrowableOfType(ThrowingCallable, Class) in favor of catchThrowableOfType(Class, ThrowingCallable)
# Conflicts: # assertj-tests/assertj-integration-tests/assertj-core-kotlin/src/test/kotlin/org/assertj/core/tests/kotlin/Assertions_describedAs_text_supplier_Test.kt
… `catchThrowableOfType(Class, ThrowingCallable)` (#2823) Co-authored-by: Vladimir Sitnikov <[email protected]>
… `catchThrowableOfType(Class, ThrowingCallable)` (assertj#2823) Co-authored-by: Vladimir Sitnikov <[email protected]>
… `catchThrowableOfType(Class, ThrowingCallable)` (assertj#2823) Co-authored-by: Vladimir Sitnikov <[email protected]>
Check List:
Following the contributing guidelines will make it easier for us to review and accept your PR.