@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user