Skip to content

Commit c734078

Browse files
Fix more punctuation issues in exception messages.
See 7c9a1fe. and #2552.
1 parent 77f9b34 commit c734078

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/springframework/data/neo4j/core/mapping/DefaultNeo4jConversionServiceTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void shouldCatchConversionErrors() {
8282

8383
assertThatExceptionOfType(TypeMismatchDataAccessException.class)
8484
.isThrownBy(() -> defaultNeo4jEntityAccessor.readValue(value, TypeInformation.of(Date.class), null))
85-
.withMessageStartingWith("Could not convert \"Das funktioniert nicht.\" into java.util.Date;")
85+
.withMessageStartingWith("Could not convert \"Das funktioniert nicht.\" into java.util.Date")
8686
.withCauseInstanceOf(ConversionFailedException.class).withRootCauseInstanceOf(DateTimeParseException.class);
8787
}
8888

@@ -93,7 +93,7 @@ void shouldCatchUncoercibleErrors() {
9393
assertThatExceptionOfType(TypeMismatchDataAccessException.class)
9494
.isThrownBy(
9595
() -> defaultNeo4jEntityAccessor.readValue(value, TypeInformation.of(LocalDate.class), null))
96-
.withMessageStartingWith("Could not convert \"Das funktioniert nicht.\" into java.time.LocalDate;")
96+
.withMessageStartingWith("Could not convert \"Das funktioniert nicht.\" into java.time.LocalDate")
9797
.withCauseInstanceOf(ConversionFailedException.class).withRootCauseInstanceOf(Uncoercible.class);
9898
}
9999

@@ -104,7 +104,7 @@ void shouldCatchCoercibleErrors() {
104104
assertThatExceptionOfType(TypeMismatchDataAccessException.class).isThrownBy(
105105
() -> defaultNeo4jEntityAccessor.readValue(value, TypeInformation.of(ReactiveNeo4jClient.class), null))
106106
.withMessageStartingWith(
107-
"Could not convert \"Das funktioniert nicht.\" into org.springframework.data.neo4j.core.ReactiveNeo4jClient;")
107+
"Could not convert \"Das funktioniert nicht.\" into org.springframework.data.neo4j.core.ReactiveNeo4jClient")
108108
.withRootCauseInstanceOf(ConverterNotFoundException.class);
109109
}
110110
}

0 commit comments

Comments
 (0)