-
-
Notifications
You must be signed in to change notification settings - Fork 690
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
GH-2639 - classloader assertions implementation. #2650
GH-2639 - classloader assertions implementation. #2650
Conversation
079f433
to
636b5cb
Compare
src/main/java/org/assertj/core/api/AbstractClassLoaderAssert.java
Outdated
Show resolved
Hide resolved
ac7cd16
to
bd4067f
Compare
bd4067f
to
be2b69e
Compare
The compatibility error here shouldn't be an issue.
This is caused by me making the |
e5a2a26
to
a5b5f96
Compare
9b6ce56
to
94eba54
Compare
@scordio out of curiosity, is this just marked as draft due to the binary compatibility script failure/the dependent base PR? Apart from that this should be ready for review hopefully :-) |
@ascopes I think I've done it only because you mentioned it being WIP in the description. No worries, let's switch it to ready and I'll be on it during the week! |
@scordio ahh I forgot about that. My bad! Thanks |
Unless there is a timeframe for getting this done before then, I will take a look at fixing this at the weekend. Should be able to just drop the commits already on master as they just duplicate that. Thanks! |
No worries, take your time! |
…tainers from Enumeration<T> objects
…derAssert New assertion methods: - hasName() -> SELF - hasNoName() -> SELF - name() -> AbstractStringAssert<?> - hasParent() -> SELF - hasNoParent() -> SELF - parent() -> AbstractClassLoaderAssert<?> - hasResource(String) -> SELF - hasNoResource(String) -> SELF New exceptions: - UncheckedReflectiveOperationException - acts as a wrapper around checked ReflectiveOperationException throwables that is unchecked. Similar to java.io.UncheckedIOException conceptually. Testing changes: - Swap mockito-core with mockito-inline to enable mocking and stubbing final classes and methods. assertjGH-2639: Continuing development of AbstractClassLoaderAssert error messages and API assertjGH-2369: Address assertjGH-2639 PR feedback for use of Bit.ly link assertjGH-2639: Started class loader tests, added assertion to read byte content assertjGH-2639: Added more tests for AbstractClassLoaderAssert assertjGH-2639: Remove JDK 9 features from AbstractClassLoaderAssert
…ementation detail
Looks like this may be affecting tests on JDK 20, will need further investigation possibly. For now this is not really important anyway.
94eba54
to
9f82d02
Compare
Should be fixed now! Not entirely sure why GitHub didn't detect the cherry-pick but this should be good to go now. |
|
@ascopes we plan to release a new version in the upcoming weeks and I'm not sure I can manage manage to finalize this PR in time. As the base branch evolved and there are now several conflicts, I am going to revert ce3ee9b and I will create a new branch with those changes and the ones in this PR, keeping you as the author of course. Sorry for the delay and thanks a lot for your patience 🙂 |
No worries at all! Thanks for the update :-) |
This implements the classes defined in #2645.
The PR currently a work-in-progress, and I will be implementing it over the next week or so when I find time. This is an initial head start.
Once the PR is ready for review, I will update this description with something more descriptive.
This PR requires GH-2645 to be merged first. This includes that PR's content as it is dependent on the definitions within that PR.
TODOs (for my reference):