Closed mmnaseri closed 3 years ago
Describe the bug The CrudRepository interface from Spring Data defines deleteById like so:
CrudRepository
deleteById
void deleteById(ID id);
where T is the entity type and ID is the key type.
T
ID
Our implementation instead treats the id argument as the entity.
id
To Reproduce
CarRepository repo = builder().mock(CarRepository.class); repo.deleteById("hello");
Expected behavior
Item is correctly deleted.
Describe the bug The
CrudRepository
interface from Spring Data definesdeleteById
like so:where
T
is the entity type andID
is the key type.Our implementation instead treats the
id
argument as the entity.To Reproduce
Expected behavior
Item is correctly deleted.