Class ShouldHaveSizeGreaterThan

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldHaveSizeGreaterThan
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies a minimum size failed.
    Author:
    Sandra Parsick, Georg Berky
    • Constructor Detail

      • ShouldHaveSizeGreaterThan

        private ShouldHaveSizeGreaterThan​(Object actual,
                                          int actualSize,
                                          int expectedSize)
    • Method Detail

      • shouldHaveSizeGreaterThan

        public static ErrorMessageFactory shouldHaveSizeGreaterThan​(Object actual,
                                                                    int actualSize,
                                                                    int expectedMinSize)
        Parameters:
        actual - the actual value in the failed assertion.
        actualSize - the size of actual.
        expectedMinSize - the expected size.
        Returns:
        the created ErrorMessageFactory.