Package org.assertj.core.error
Class ShouldHaveSize
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldHaveSize
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldHaveSize extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a value have certain size failed.
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldHaveSize(java.lang.Object actual, int actualSize, int expectedSize)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldHaveSize(java.lang.Object actual, int actualSize, int expectedSize)
Creates a newShouldHaveSize
.-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Method Detail
-
shouldHaveSize
public static ErrorMessageFactory shouldHaveSize(java.lang.Object actual, int actualSize, int expectedSize)
Creates a newShouldHaveSize
.- Parameters:
actual
- the actual value in the failed assertion.actualSize
- the size ofactual
.expectedSize
- the expected size.- Returns:
- the created
ErrorMessageFactory
.
-
-