public class ShouldHaveDateField extends BasicErrorMessageFactory
Date has a year, month, day, ...
failed.arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldHaveDateField(Date actual,
String fieldDescription,
int fieldValue)
Creates a new
. |
static ErrorMessageFactory |
shouldHaveDateField(Temporal actual,
String fieldDescription,
int fieldValue) |
static ErrorMessageFactory |
shouldHaveMonth(Temporal actual,
Month month) |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ErrorMessageFactory shouldHaveDateField(Date actual, String fieldDescription, int fieldValue)
ShouldHaveDateField.actual - the actual value in the failed assertion.fieldDescription - the fieldDescription of value : year, month, day, ...fieldValue - the field value used in the failed assertion to compare the actual date field value to.ErrorMessageFactory.public static ErrorMessageFactory shouldHaveDateField(Temporal actual, String fieldDescription, int fieldValue)
public static ErrorMessageFactory shouldHaveMonth(Temporal actual, Month month)
Copyright © 2025. All rights reserved.