Class ShouldHaveSameSizeAs

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldHaveSameSizeAs
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that a value have certain size failed.
    Author:
    Nicolas François
    • Method Detail

      • shouldHaveSameSizeAs

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