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

public Class ShouldHaveSizeLessThan

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

Creates an error message indicating that an assertion that verifies a maximum size failed.
Authors
Sandra Parsick, Georg Berky

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldHaveSizeLessThan(Object actual, int actualSize, int expectedSize)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldHaveSizeLessThan
(Object
the actual value in the failed assertion.
actual
,
int
the size of actual.
actualSize
,
int
the expected size.
expectedMaxSize
)

Creates a new ShouldHaveSizeLessThan.

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

Constructor Detail

ShouldHaveSizeLessThanback to summary
private ShouldHaveSizeLessThan(Object actual, int actualSize, int expectedSize)

Method Detail

shouldHaveSizeLessThanback to summary
public static ErrorMessageFactory shouldHaveSizeLessThan(Object actual, int actualSize, int expectedMaxSize)

Creates a new ShouldHaveSizeLessThan.

Parameters
actual:Object

the actual value in the failed assertion.

actualSize:int

the size of actual.

expectedMaxSize:int

the expected size.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.