Adopts tests to changes in Spring Framework.

See #2695
This commit is contained in:
Mark Paluch
2023-04-06 17:18:03 +02:00
parent c5cc6e676d
commit 9c9baaf3aa

View File

@@ -102,9 +102,11 @@ class SingleValueMappingFunctionTest {
SingleValueMappingFunction<Period> mappingFunction = new SingleValueMappingFunction<>(conversionService,
Period.class);
assertThatExceptionOfType(ConversionFailedException.class)
.isThrownBy(() -> mappingFunction.apply(typeSystem, record)).withMessageStartingWith(
"Failed to convert from type [org.neo4j.driver.internal.value.StringValue] to type [java.time.Period] for value '\"Guten Tag.\"'");
.isThrownBy(() -> mappingFunction.apply(typeSystem, record)).withMessageContainingAll(
"Failed to convert from type", "org.neo4j.driver.internal.value.StringValue",
"to type [java.time.Period] for value");
}
@Test