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

Update misleading parameter name AbstractOffsetDateTimeAssert#isBetween #3217

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,8 @@ public SELF isInTheFuture() {
* .isBetween(parse("2010-01-01T01:00:00+01:00"),
* parse("2010-01-01T01:00:00+01:00"));</code></pre>
*
* @param startExclusive the start value (exclusive), expected not to be null.
* @param endExclusive the end value (exclusive), expected not to be null.
* @param startInclusive the start value (inclusive), expected not to be null.
* @param endInclusive the end value (inclusive), expected not to be null.
* @return this assertion object.
* @throws AssertionError if the actual value is {@code null}.
* @throws NullPointerException if start value is {@code null}.
Expand All @@ -864,8 +864,8 @@ public SELF isInTheFuture() {
*
* @since 3.7.1
*/
public SELF isBetween(OffsetDateTime startExclusive, OffsetDateTime endExclusive) {
comparables.assertIsBetween(info, actual, startExclusive, endExclusive, true, true);
public SELF isBetween(OffsetDateTime startInclusive, OffsetDateTime endInclusive) {
comparables.assertIsBetween(info, actual, startInclusive, endInclusive, true, true);
return myself;
}

Expand All @@ -892,8 +892,8 @@ public SELF isBetween(OffsetDateTime startExclusive, OffsetDateTime endExclusive
* // assertion fails:
* assertThat(firstOfJanuary2000).isBetween("1999-01-01T00:00:01Z", "1999-12-31T23:59:59Z");</code></pre>
*
* @param startExclusive the start value (exclusive), expected not to be null.
* @param endExclusive the end value (exclusive), expected not to be null.
* @param startInclusive the start value (inclusive), expected not to be null.
* @param endInclusive the end value (inclusive), expected not to be null.
* @return this assertion object.
*
* @throws AssertionError if the actual value is {@code null}.
Expand All @@ -904,8 +904,8 @@ public SELF isBetween(OffsetDateTime startExclusive, OffsetDateTime endExclusive
*
* @since 3.7.1
*/
public SELF isBetween(String startExclusive, String endExclusive) {
return isBetween(parse(startExclusive), parse(endExclusive));
public SELF isBetween(String startInclusive, String endInclusive) {
return isBetween(parse(startInclusive), parse(endInclusive));
}

/**
Expand Down
Loading