Class 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
    • 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 of actual.
        expectedSize - the expected lines count.
        Returns:
        the created ErrorMessageFactory.