Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldNotBeBetween

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.util.Date, org.assertj.core.internal.ComparisonStrategy, .StandardComparisonStrategy

Creates an error message indicating that an assertion that verifies that a Date is not between start - end dates (inclusive or not) failed.
Author
Joel Costigliola

Field Summary

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private
ShouldNotBeBetween(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotBeBetween
(Date
the actual value in the failed assertion.
actual
,
Date
the lower boundary of date period.
start
,
Date
the lower boundary of date period.
end
,
boolean
whether to include start date in period.
inclusiveStart
,
boolean
whether to include end date in period.
inclusiveEnd
,
ComparisonStrategy
the ComparisonStrategy used to evaluate assertion.
comparisonStrategy
)

Creates a new ShouldNotBeBetween.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotBeBetween
(Date
the actual value in the failed assertion.
actual
,
Date
the lower boundary of date period.
start
,
Date
the lower boundary of date period.
end
,
boolean
whether to include start date in period.
inclusiveStart
,
boolean
whether to include end date in period.
inclusiveEnd
)

Creates a new ShouldNotBeBetween.

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Constructor Detail

ShouldNotBeBetweenback to summary
private ShouldNotBeBetween(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)

Method Detail

shouldNotBeBetweenback to summary
public static ErrorMessageFactory shouldNotBeBetween(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)

Creates a new ShouldNotBeBetween.

Parameters
actual:Date

the actual value in the failed assertion.

start:Date

the lower boundary of date period.

end:Date

the lower boundary of date period.

inclusiveStart:boolean

whether to include start date in period.

inclusiveEnd:boolean

whether to include end date in period.

comparisonStrategy:ComparisonStrategy

the ComparisonStrategy used to evaluate assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldNotBeBetweenback to summary
public static ErrorMessageFactory shouldNotBeBetween(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd)

Creates a new ShouldNotBeBetween.

Parameters
actual:Date

the actual value in the failed assertion.

start:Date

the lower boundary of date period.

end:Date

the lower boundary of date period.

inclusiveStart:boolean

whether to include start date in period.

inclusiveEnd:boolean

whether to include end date in period.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.