DATACMNS-35 - Added implementation and test for newly introduced Repository.delete(ID id) method.
This commit is contained in:
@@ -187,6 +187,16 @@ public class UserRepositoryTests {
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void deletesAUserById() {
|
||||
|
||||
flushTestUsers();
|
||||
|
||||
repository.delete(firstUser.getId());
|
||||
assertNull(repository.findOne(firstUser.getId()));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Tests deleting a user.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user