Skip to content

Commit 9c9baaf

Browse files
committed
Adopts tests to changes in Spring Framework.
See #2695
1 parent c5cc6e6 commit 9c9baaf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/java/org/springframework/data/neo4j/core/SingleValueMappingFunctionTest.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,11 @@ void shouldCheckReturnType() {
102102

103103
SingleValueMappingFunction<Period> mappingFunction = new SingleValueMappingFunction<>(conversionService,
104104
Period.class);
105+
105106
assertThatExceptionOfType(ConversionFailedException.class)
106-
.isThrownBy(() -> mappingFunction.apply(typeSystem, record)).withMessageStartingWith(
107-
"Failed to convert from type [org.neo4j.driver.internal.value.StringValue] to type [java.time.Period] for value '\"Guten Tag.\"'");
107+
.isThrownBy(() -> mappingFunction.apply(typeSystem, record)).withMessageContainingAll(
108+
"Failed to convert from type", "org.neo4j.driver.internal.value.StringValue",
109+
"to type [java.time.Period] for value");
108110
}
109111

110112
@Test

0 commit comments

Comments
 (0)