mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-10-12 21:38:54 +00:00
Adapt tests to MappingException
cause when entity creation fails.
Closes #3167
This commit is contained in:
parent
087f3a80c5
commit
b49fedaafc
@ -190,7 +190,7 @@ public class SimpleElasticsearchPersistentPropertyUnitTests {
|
|||||||
void shouldRequirePatternForCustomDateFormat() {
|
void shouldRequirePatternForCustomDateFormat() {
|
||||||
assertThatExceptionOfType(MappingException.class) //
|
assertThatExceptionOfType(MappingException.class) //
|
||||||
.isThrownBy(() -> context.getRequiredPersistentEntity(DateFieldWithCustomFormatAndNoPattern.class)) //
|
.isThrownBy(() -> context.getRequiredPersistentEntity(DateFieldWithCustomFormatAndNoPattern.class)) //
|
||||||
.withMessageContaining("pattern");
|
.havingRootCause().withMessageContaining("pattern");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test // #1565
|
@Test // #1565
|
||||||
|
Loading…
x
Reference in New Issue
Block a user