Adapt to changes in Spring Data Commons.

See
8721ab4170.
This commit is contained in:
Michael Simons
2022-06-10 12:47:26 +02:00
parent 8fd18c97f5
commit ff8f4556a4
3 changed files with 3 additions and 3 deletions

View File

@@ -117,7 +117,7 @@ class TypeConversionIT extends Neo4jConversionsITBase {
.isThrownBy(() -> template.findById(id, AllArgsCtorNoBuilder.class))
.withMessageMatching("Error mapping Record<\\{.+: .*>")
.withRootCauseInstanceOf(IllegalArgumentException.class)
.withStackTraceContaining("Parameter aBoolean must not be null!");
.withStackTraceContaining("Parameter aBoolean must not be null");
}
@TestFactory

View File

@@ -77,7 +77,7 @@ class Neo4jRepositoryFactoryTest {
when(metadata.getIdType()).thenReturn(repositoryIdentifierClass);
assertThatThrownBy(() -> neo4jRepositoryFactory.getTargetRepository(metadata))
.hasMessage("Target type must not be null!").isInstanceOf(IllegalArgumentException.class);
.hasMessageContaining("Target type must not be null").isInstanceOf(IllegalArgumentException.class);
}
@Test

View File

@@ -63,7 +63,7 @@ class ReactiveNeo4jRepositoryFactoryTest {
when(metadata.getIdType()).thenReturn(repositoryIdentifierClass);
assertThatThrownBy(() -> neo4jRepositoryFactory.getTargetRepository(metadata))
.hasMessage("Target type must not be null!").isInstanceOf(IllegalArgumentException.class);
.hasMessageContaining("Target type must not be null").isInstanceOf(IllegalArgumentException.class);
}
@Test