Package org.assertj.core.error
Class ShouldHaveLineCount
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldHaveLineCount
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a value have certain number of lines failed.
- Author:
- Mariusz Smykula
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldHaveLinesCount(Object actual, int actualSize, int expectedSize) Creates a new.ShouldHaveLineCountMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldHaveLinesCount
public static ErrorMessageFactory shouldHaveLinesCount(Object actual, int actualSize, int expectedSize) Creates a new.ShouldHaveLineCount- Parameters:
actual- the actual value in the failed assertion.actualSize- the lines count ofactual.expectedSize- the expected lines count.- Returns:
- the created
ErrorMessageFactory.
-