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

public Class ShouldHaveSizeBetween

extends BasicErrorMessageFactory
Class Inheritance
Static Imports
java.lang.String.format

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

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

Constructor Summary

AccessConstructor and Description
private
ShouldHaveSizeBetween(Object actual, int actualSize, int lowerBoundary, int higherBoundary)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldHaveSizeBetween
(Object
the actual value in the failed assertion.
actual
,
int
the size of actual.
actualSize
,
int
the lower boundary compared to which actual size should be greater than or equal to.
lowerBoundary
,
int
the higher boundary compared to which actual size should be less than or equal to.
higherBoundary
)

Creates a new ShouldHaveSizeBetween.

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

Constructor Detail

ShouldHaveSizeBetweenback to summary
private ShouldHaveSizeBetween(Object actual, int actualSize, int lowerBoundary, int higherBoundary)

Method Detail

shouldHaveSizeBetweenback to summary
public static ErrorMessageFactory shouldHaveSizeBetween(Object actual, int actualSize, int lowerBoundary, int higherBoundary)

Creates a new ShouldHaveSizeBetween.

Parameters
actual:Object

the actual value in the failed assertion.

actualSize:int

the size of actual.

lowerBoundary:int

the lower boundary compared to which actual size should be greater than or equal to.

higherBoundary:int

the higher boundary compared to which actual size should be less than or equal to.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.