Adopts tests to changes in Spring Framework.

See #2694
This commit is contained in:
Mark Paluch
2023-04-06 17:18:03 +02:00
parent 3513ff6b0b
commit 41adae288b

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