Skip to content

isCloseTo Assertions for Date values with a time tolerance #18

@otoniel-isidoro

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

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