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

Assertions for dates and time #36

Merged
merged 18 commits into from
Apr 2, 2017
Merged

Assertions for dates and time #36

merged 18 commits into from
Apr 2, 2017

Conversation

MarkusAmshove
Copy link
Owner

@MarkusAmshove MarkusAmshove commented Apr 1, 2017

  • LocalDateTime shouldBeAfter LocalDateTime

  • LocalDateTime shouldBeBefore LocalDateTime

  • LocalDateTime shouldBeOnOrAfter LocalDateTime

  • LocalDateTime shouldBeOnOrBefore LocalDateTime

  • LocalDateTime shouldBeOn DayOfWeek

  • LocalDateTime shouldBeIn Month

  • LocalDateTime shouldBeInYear Int

  • LocalDate shouldBeAfter LocalDate

  • LocalDate shouldBeBefore LocalDate

  • LocalDate shouldBeOnOrAfter LocalDate

  • LocalDate shouldBeOnOrBefore LocalDate

  • LocalDate shouldBeOn DayOfWeek

  • LocalDate shouldBeIn Month

  • LocalDate shouldBeInYear Int

  • LocalTime shouldBe x.hours() before/after LocalTime

  • LocalTime shouldBe x.minutes() before/after LocalTime

  • LocalTime shouldBe x.seconds() before/after LocalTime

  • LocalTime shouldBeAtLeast x.hours() before/after LocalTime

  • LocalTime shouldBeAtLeast x.minutes() before/after LocalTime

  • LocalTime shouldBeAtLeast x.seconds() before/after LocalTime

  • LocalTime shouldBeAtMost x.hours() before/after LocalTime

  • LocalTime shouldBeAtMost x.minutes() before/after LocalTime

  • LocalTime shouldBeAtMost x.seconds() before/after LocalTime

  • LocalDateTime shouldBe x.hours() before/after LocalDateTime

  • LocalDateTime shouldBe x.minutes() before/after LocalDateTime

  • LocalDateTime shouldBe x.seconds() before/after LocalDateTime

  • LocalDateTime shouldBeAtLeast x.hours() before/after LocalDateTime

  • LocalDateTime shouldBeAtLeast x.minutes() before/after LocalDateTime

  • LocalDateTime shouldBeAtLeast x.seconds() before/after LocalDateTime

  • LocalDateTime shouldBeAtMost x.hours() before/after LocalDateTime

  • LocalDateTime shouldBeAtMost x.minutes() before/after LocalDateTime

  • LocalDateTime shouldBeAtMost x.seconds() before/after LocalDateTime

  • LocalDateTime shouldBeAtMost x.hours() before/after LocalTime

  • LocalDateTime shouldBeAtMost x.minutes() before/after LocalTime

  • LocalDateTime shouldBeAtMost x.seconds() before/after LocalTime

  • LocalDate shouldBe x.days() before/after LocalDate

  • LocalDate shouldBeAtLeast x.days() before/after LocalDate

  • LocalDate shouldBeAtMost x.days() before/after LocalDate

  • LocalDate shouldBe x.months() before/after LocalDate

  • LocalDate shouldBeAtLeast x.months() before/after LocalDate

  • LocalDate shouldBeAtMost x.months() before/after LocalDate

  • LocalDate shouldBe x.years() before/after LocalDate

  • LocalDate shouldBeAtLeast x.years() before/after LocalDate

  • LocalDate shouldBeAtMost x.years() before/after LocalDate

  • LocalDateTime shouldBe x.years() before/after LocalDate

  • LocalDateTime shouldBeAtLeast x.years() before/after LocalDate

  • LocalDateTime shouldBeAtMost x.years() before/after LocalDate

  • LocalDateTime shouldBeInHour Int

  • LocalDateTime shouldBeInMinute Int

  • LocalDateTime shouldBeInSecond Int

  • LocalTime shouldBeInHour Int

  • LocalTime shouldBeInMinute Int

  • LocalTime shouldBeInSecond Int

@MarkusAmshove
Copy link
Owner Author

MarkusAmshove commented Apr 1, 2017

Can I get some reviews about the fluent syntax? :-)

@goreRatzete @Egorand @okkero @fishb6ne

I'm also thinking about what to do with LocalTime and times in general.

orderDate shouldBe 5.Minutes after loginDate
orderDate shouldBe 5.Days after loginDate

would be cool I think.

@okkero
Copy link
Contributor

okkero commented Apr 1, 2017

👍

@Egorand
Copy link
Collaborator

Egorand commented Apr 1, 2017

LGTM!

@MarkusAmshove MarkusAmshove merged commit fa9d67a into master Apr 2, 2017
@MarkusAmshove MarkusAmshove deleted the datetime branch April 2, 2017 15:42
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.

3 participants