Class 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.
    Author:
    Alex Ruiz
    • Method Detail

      • shouldHaveSize

        public static ErrorMessageFactory shouldHaveSize​(java.lang.Object actual,
                                                         java.lang.Object actualSize,
                                                         java.lang.Object expectedSize)
        Creates a new ShouldHaveSize.
        Parameters:
        actual - the actual value in the failed assertion.
        actualSize - the size of actual.
        expectedSize - the expected size.
        Returns:
        the created ErrorMessageFactory.