GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||
GeezerVison is showing github.com — Add hasPermittedSubclasses for Class assertions by pbacz · Pull Request #3316 · assertj/assertj Conversation
Contributor
Check List:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
scordio
reviewed
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you, @pbacz! I have a few comments.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had the impression it's not valuable to have this assertion (#3263 (comment)). Or did I misunderstand?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
| * @throws AssertionError if {@code actual} is {@code null}. | ||
| * @throws AssertionError if the actual {@code Class} does not have all of these permitted subclasses. | ||
| */ | ||
| public void assertContainsPermittedSubclasses(AssertionInfo info, Class<?> actual, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This can be pulled to AbstractClassAssert as a private method as it's unlikely we would reuse this elsewhere. hasSuperclass implementation might be a good example of such a pattern.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Ok, will do.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@scordio I need this commit in my branch 887f97b
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'd suggest either rebase or merge but it's totally up to you. We'll anyway squash the changes in a single commit once ready. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…rc/test/java/org/assertj/core/tests/java17/Assertions_assertThat_with_Class_Test.java Co-authored-by: Stefano Cordio <[email protected]>
…rc/test/java/org/assertj/core/tests/java17/Assertions_assertThat_with_Class_Test.java Co-authored-by: Stefano Cordio <[email protected]>
|
Integrated thanks @pbacz! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
hasPermittedSubclasses and hasNoPermittedSubclasses for Class assertions
There was an error while loading. Please reload this page.