Class ShouldBeBeforeOrEqualsTo

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldBeBeforeOrEqualsTo
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that a Object is before or equals to another one failed.
    • Constructor Detail

      • ShouldBeBeforeOrEqualsTo

        private ShouldBeBeforeOrEqualsTo​(java.lang.Object actual,
                                         java.lang.Object other,
                                         ComparisonStrategy comparisonStrategy)
    • Method Detail

      • shouldBeBeforeOrEqualsTo

        public static ErrorMessageFactory shouldBeBeforeOrEqualsTo​(java.lang.Object actual,
                                                                   java.lang.Object other,
                                                                   ComparisonStrategy comparisonStrategy)
        Parameters:
        actual - the actual value in the failed assertion.
        other - the value used in the failed assertion to compare the actual value to.
        comparisonStrategy - the ComparisonStrategy used to evaluate assertion.
        Returns:
        the created ErrorMessageFactory.
      • shouldBeBeforeOrEqualsTo

        public static ErrorMessageFactory shouldBeBeforeOrEqualsTo​(java.lang.Object actual,
                                                                   java.lang.Object other)
        Parameters:
        actual - the actual value in the failed assertion.
        other - the value used in the failed assertion to compare the actual value to.
        Returns:
        the created ErrorMessageFactory.