Skip to content

Commit d7aef08

Browse files
committed
DATAGRAPH-1428 - Save additional person for test.
The additional person allows to actually delete multiple persons, without deleting all of them.
1 parent e533a75 commit d7aef08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/org/springframework/data/neo4j/integration/imperative/RepositoryIT.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,6 +1900,8 @@ void deleteAllById(@Autowired PersonRepository repository) {
19001900
TEST_PERSON_SAMEVALUE, true, 1L, TEST_PERSON1_BORN_ON, "something", Arrays.asList("a", "b"), NEO4J_HQ,
19011901
Instant.now());
19021902

1903+
repository.save(person3);
1904+
19031905
repository.deleteAllById(Arrays.asList(person1.getId(), person3.getId()));
19041906

19051907
assertThat(repository.findAll()).extracting(PersonWithAllConstructor::getId).containsExactly(id2);

0 commit comments

Comments
 (0)