Package org.assertj.core.error
Class ShouldHaveLineCount
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldHaveLineCount
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldHaveLineCount extends BasicErrorMessageFactory
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, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldHaveLineCount(Object actual, int actualSize, int expectedSize)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldHaveLinesCount(Object actual, int actualSize, int expectedSize)
Creates a new
.ShouldHaveLineCount
-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Constructor Detail
-
ShouldHaveLineCount
private ShouldHaveLineCount(Object actual, int actualSize, int expectedSize)
-
-
Method Detail
-
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
.
-
-