Skip to content

Commit 3d451e3

Browse files
Adapt to changes in Spring Data Commons.
See spring-projects/spring-data-commons@8721ab4.
1 parent 33147ed commit 3d451e3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/test/java/org/springframework/data/neo4j/integration/conversion_imperative/TypeConversionIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void thereShallBeNoDefaultValuesForNonExistingAttributes(@Autowired Neo4jTemplat
117117
.isThrownBy(() -> template.findById(id, AllArgsCtorNoBuilder.class))
118118
.withMessageMatching("Error mapping Record<\\{.+: .*>")
119119
.withRootCauseInstanceOf(IllegalArgumentException.class)
120-
.withStackTraceContaining("Parameter aBoolean must not be null!");
120+
.withStackTraceContaining("Parameter aBoolean must not be null");
121121
}
122122

123123
@TestFactory

src/test/java/org/springframework/data/neo4j/repository/support/Neo4jRepositoryFactoryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void matchingClassTypes() {
7777
when(metadata.getIdType()).thenReturn(repositoryIdentifierClass);
7878

7979
assertThatThrownBy(() -> neo4jRepositoryFactory.getTargetRepository(metadata))
80-
.hasMessage("Target type must not be null!").isInstanceOf(IllegalArgumentException.class);
80+
.hasMessageContaining("Target type must not be null").isInstanceOf(IllegalArgumentException.class);
8181
}
8282

8383
@Test

src/test/java/org/springframework/data/neo4j/repository/support/ReactiveNeo4jRepositoryFactoryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void matchingClassTypes() {
6363
when(metadata.getIdType()).thenReturn(repositoryIdentifierClass);
6464

6565
assertThatThrownBy(() -> neo4jRepositoryFactory.getTargetRepository(metadata))
66-
.hasMessage("Target type must not be null!").isInstanceOf(IllegalArgumentException.class);
66+
.hasMessageContaining("Target type must not be null").isInstanceOf(IllegalArgumentException.class);
6767
}
6868

6969
@Test

0 commit comments

Comments
 (0)