Skip to content

Conversation

vladykin
Copy link
Contributor

@vladykin vladykin commented Sep 2, 2024

Issue #3587

Check List:

@joel-costigliola
Copy link
Member

Thanks @vladykin, I'll review the PR this week end.

@vladykin
Copy link
Contributor Author

vladykin commented Sep 4, 2024

Fixed code formatting that spotless plugin was complaining about

@vladykin
Copy link
Contributor Author

vladykin commented Sep 4, 2024

Things that I wasn't sure about and haven't yet included:

  • separate assertion failure message in case of InterruptedException (it's currently the same message for all failures);
  • note about interaction with soft assertions in the javadoc for the new methods;
  • similar methods in AbstractFutureAssert.

@vladykin
Copy link
Contributor Author

@joel-costigliola, any feedback on this PR?

@joel-costigliola
Copy link
Member

I'll have a look this week

@joel-costigliola
Copy link
Member

commented thanks @vladykin

@vladykin
Copy link
Contributor Author

@joel-costigliola, I don't see any comments here. Where can I find them?

I see some failed CI jobs, but there are no details besides "This job failed", so I don't know what to do, and whether it's related to my PR or not.

import org.assertj.core.error.BasicErrorMessageFactory;
import org.assertj.core.error.ErrorMessageFactory;

public class ShouldHaveCompletedExceptionallyWithin extends BasicErrorMessageFactory {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a unit test for this, like ShouldHaveCompletedExceptionally_create_Test

} catch (@SuppressWarnings("unused") InterruptedException e) {
// do nothing
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move these two methods in a FutureTestHelper class and replace their use in CompletableFutureAssert_failsWithin_Test

@joel-costigliola
Copy link
Member

My bad I did confirm my review so my comments were pending

@joel-costigliola
Copy link
Member

the issues are not related to your PR, I reran the ubuntu job and it succeeded so all good

@vladykin
Copy link
Contributor Author

Thanks for the comments, addressed

@joel-costigliola
Copy link
Member

Integrated thanks @vladykin !

@scordio scordio changed the title Add AbstractCompletableFutureAssert.completesExceptionallyWithin Add completesExceptionallyWithin to CompletableFuture assertions Dec 14, 2024
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.

Confusing behavior of AbstractCompletableFutureAssert.failsWithin
2 participants