Skip to content
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

Added assertion for completable future for it to complete within peri… #3506

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

mipo256
Copy link

@mipo256 mipo256 commented Jun 14, 2024

Added a new willCompleteWithValueMatching method to AbstractCompletableFutureAssert to check that CompletableFuture will complete within the given period with value matching given Predicate. Found this kind of assertion very handy in my project.

@joel-costigliola
Copy link
Member

Thanks @mipo256, we will review your PR shortly !

@joel-costigliola
Copy link
Member

@mipo256 the code does not compile on java 8 which is AssertJ Core 3.x baseline, can you fix it ?

FYI we will bump it to java 17 for 4.x

@mipo256
Copy link
Author

mipo256 commented Jun 15, 2024

Hey @joel-costigliola, of course, I can fix it to run on JDK 8. Will do it today.

P.SL In contribution guidelines it is mentioned that the project needs to be built with JDK 17

@scordio
Copy link
Member

scordio commented Jun 15, 2024

We actually raised it to 21 for building it 🙃 but the language syntax and feature set that can be used in the code are still restricted to 8

@mipo256 mipo256 force-pushed the add-completable-future-assertion branch 2 times, most recently from 72e5f56 to ff8ab54 Compare June 15, 2024 19:29
@mipo256 mipo256 force-pushed the add-completable-future-assertion branch from ff8ab54 to 59bbca7 Compare June 15, 2024 19:35
@mipo256
Copy link
Author

mipo256 commented Jun 15, 2024

Thanks. guys, I've fixed it. Now the build should run just fine.

FYI: @joel-costigliola, @scordio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants