DATAJDBC-629 - Implements CrudRepository.deleteAllById(Iterable<ID>).
Original pull request: #252.
This commit is contained in:
committed by
Mark Paluch
parent
636a81a46d
commit
c0d337d715
@@ -204,6 +204,20 @@ public class JdbcRepositoryIntegrationTests {
|
||||
.containsExactlyInAnyOrder(two.getIdProp());
|
||||
}
|
||||
|
||||
@Test // DATAJDBC-629
|
||||
public void deleteByIdList() {
|
||||
|
||||
DummyEntity one = repository.save(createDummyEntity());
|
||||
DummyEntity two = repository.save(createDummyEntity());
|
||||
DummyEntity three = repository.save(createDummyEntity());
|
||||
|
||||
repository.deleteAllById(asList(one.idProp, three.idProp));
|
||||
|
||||
assertThat(repository.findAll()) //
|
||||
.extracting(DummyEntity::getIdProp) //
|
||||
.containsExactlyInAnyOrder(two.getIdProp());
|
||||
}
|
||||
|
||||
@Test // DATAJDBC-97
|
||||
public void deleteAll() {
|
||||
|
||||
|
||||
@@ -228,5 +228,10 @@ public class EnableJdbcRepositoriesIntegrationTests {
|
||||
public void deleteAll() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteAllById(Iterable<? extends ID> ids) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user