Class ShouldBeCurrentYearMonth

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldBeCurrentYearMonth
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that a YearMonth is the current one (matching year and month).
    Since:
    3.26.0
    • Constructor Detail

      • ShouldBeCurrentYearMonth

        private ShouldBeCurrentYearMonth​(java.time.YearMonth actual)
    • Method Detail

      • shouldBeCurrentYearMonth

        public static ErrorMessageFactory shouldBeCurrentYearMonth​(java.time.YearMonth actual)
        Parameters:
        actual - the actual value in the failed assertion.
        Returns:
        the created ErrorMessageFactory.