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
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? |
assertj-core/src/main/java/org/assertj/core/api/ThrowableAssert.java
Outdated
Show resolved
Hide resolved
Yes, changing the method calls in the tests to the new method is fine. Sorry for the late feedback! |
assertj-core/src/main/java/org/assertj/core/api/Assertions.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
@scordio Please approve the workflows, and also review the code in case any changes still need to made. |
assertj-core/src/main/java/org/assertj/core/api/AssertionsForClassTypes.java
Outdated
Show resolved
Hide resolved
assertj-core/src/main/java/org/assertj/core/api/AssertionsForClassTypes.java
Outdated
Show resolved
Hide resolved
assertj-core/src/main/java/org/assertj/core/api/BDDAssertions.java
Outdated
Show resolved
Hide resolved
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 <vlsi@users.noreply.github.com>
Check List:
Following the contributing guidelines will make it easier for us to review and accept your PR.