Package org.assertj.core.error
Class ShouldHaveSizeBetween
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldHaveSizeBetween
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldHaveSizeBetween extends BasicErrorMessageFactory
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, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldHaveSizeBetween(Object actual, int actualSize, int lowerBoundary, int higherBoundary)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
-
-
-
-
Constructor Detail
-
ShouldHaveSizeBetween
private ShouldHaveSizeBetween(Object actual, int actualSize, int lowerBoundary, int higherBoundary)
-
-
Method Detail
-
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
.
-
-