Package org.assertj.core.error
Class ShouldHaveSizeBetween
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldHaveSizeBetween
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion - that verifies that size of a value is
between two given values - failed.
- Author:
- Martin Tarjányi
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldHaveSizeBetween
(Object actual, int actualSize, int lowerBoundary, int higherBoundary) Creates a new
.ShouldHaveSizeBetween
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldHaveSizeBetween
public static ErrorMessageFactory shouldHaveSizeBetween(Object actual, int actualSize, int lowerBoundary, int higherBoundary) Creates a new
.ShouldHaveSizeBetween
- Parameters:
actual
- the actual value in the failed assertion.actualSize
- the size ofactual
.lowerBoundary
- the lower boundary compared to which actual size should be greater than or equal to.higherBoundary
- the higher boundary compared to which actual size should be less than or equal to.- Returns:
- the created
ErrorMessageFactory
.
-