Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldBeCurrentYearMonth

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.time.YearMonth

Creates an error message indicating that an assertion that verifies that a java.time.YearMonth is the current one (matching year and month).
Since
3.26.0

Field Summary

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeCurrentYearMonth
(YearMonth
the actual value in the failed assertion.
actual
)

Creates a new ShouldBeCurrentYearMonth.

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Constructor Detail

ShouldBeCurrentYearMonthback to summary
private ShouldBeCurrentYearMonth(YearMonth actual)

Method Detail

shouldBeCurrentYearMonthback to summary
public static ErrorMessageFactory shouldBeCurrentYearMonth(YearMonth actual)

Creates a new ShouldBeCurrentYearMonth.

Parameters
actual:YearMonth

the actual value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.