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

public Class ShouldHaveLineCount

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

Creates an error message indicating that an assertion that verifies that a value have certain number of lines failed.
Author
Mariusz Smykula

Field Summary

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

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldHaveLinesCount
(Object
the actual value in the failed assertion.
actual
,
int
the lines count of actual.
actualSize
,
int
the expected lines count.
expectedSize
)

Creates a new ShouldHaveLineCount.

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

Constructor Detail

ShouldHaveLineCountback to summary
private ShouldHaveLineCount(Object actual, int actualSize, int expectedSize)

Method Detail

shouldHaveLinesCountback to summary
public static ErrorMessageFactory shouldHaveLinesCount(Object actual, int actualSize, int expectedSize)

Creates a new ShouldHaveLineCount.

Parameters
actual:Object

the actual value in the failed assertion.

actualSize:int

the lines count of actual.

expectedSize:int

the expected lines count.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.