Skip to content

Add isInThePast and isInTheFuture to LocalDate assertions#2933

Closed
StefanBratanov wants to merge 2 commits intoassertj:mainfrom
StefanBratanov:is_in_the_past_future_local_date
Closed

Add isInThePast and isInTheFuture to LocalDate assertions#2933
StefanBratanov wants to merge 2 commits intoassertj:mainfrom
StefanBratanov:is_in_the_past_future_local_date

Conversation

@StefanBratanov
Copy link
Copy Markdown
Contributor

Check List:

Two things I am unsure about:

  • The correctness of the @since version
  • ShouldBeInTheFuture/ThePast error message contains the class name (java.time.LocalDate). This seems to be the behaviour of the MessageFormatter handling dates classes. Is the error message ok like this?

@StefanBratanov StefanBratanov force-pushed the is_in_the_past_future_local_date branch from 9621323 to 04c6ea4 Compare January 30, 2023 21:40
@joel-costigliola
Copy link
Copy Markdown
Member

Integrated thanks @StefanBratanov for the good work!
I did some minor changes before integrating it

  • no need to use @DisplayName this is now done automatically with a junit custom test naming config
  • updated the javadoc as the example for isInTheFutture was not that nice (came from date assertions that I also updated)

@StefanBratanov
Copy link
Copy Markdown
Contributor Author

Integrated thanks @StefanBratanov for the good work! I did some minor changes before integrating it

  • no need to use @DisplayName this is now done automatically with a junit custom test naming config
  • updated the javadoc as the example for isInTheFutture was not that nice (came from date assertions that I also updated)

Thank you @joel-costigliola . Will keep in mind for any future contributions. :)

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.

2 participants