-
-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
Describe the bug
A clear and concise description of what the bug is.
On fields with type LocalDate, tests are using the method
public static String formatDateTime(Temporal temporal) {
return DATE_TIME_FORMATTER.format(temporal);
}DATE_TIME_FORMATTER using the pattern yyyy-MM-dd'T'HH:mm:ss.SSS'Z' which results on an error UnsupportedTemporalType Unsupported field: HourOfDay
TestUtil class should have another method to deal with LocalDate
private static DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern(LOCAL_DATE_FORMAT)
.withZone(ZoneId.of("UTC"));
public static String formatLocalDate(Temporal temporal) {
return DATE_FORMATTER.format(temporal);
}To Reproduce
Steps to reproduce the behavior:
- create a field with
LocalDatetype. - Generate the entity
- run
mvn clean install - See error
Expected behavior
All tests should pass
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels