Polishing

Closes gh-26878
This commit is contained in:
Johnny Lim
2021-04-29 23:53:53 +09:00
committed by GitHub
parent 697108cc42
commit 98770b15e7
6 changed files with 7 additions and 8 deletions

View File

@@ -130,7 +130,6 @@ public class DateFormattingTests {
assertThat(bindingResult.getErrorCount()).isEqualTo(1);
FieldError fieldError = bindingResult.getFieldError(propertyName);
TypeMismatchException exception = fieldError.unwrap(TypeMismatchException.class);
exception.printStackTrace(System.err);
assertThat(exception)
.hasMessageContaining("for property 'styleDate'")
.hasCauseInstanceOf(ConversionFailedException.class).getCause()