Skip to content

isCloseTo Assertions for Date values with a time tolerance #18

Description

@otoniel-isidoro

For test purposes on Date assertions should be more easy to use an isCloseTo method with a tolerance instead of use isAfter and isBefore.

Example:

assertThat(appInstallTagTable).column("inserted_at").value(0).isCloseTo(TimeUnit.MILISECONDS, 10000, new Date());
assertThat(appInstallTagTable).column("inserted_at").hasValuesCloseTo(TimeUnit.MILISECONDS, 10000, new Date(), new Date(), new Date()); //verify 3 rows values

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions