DATACMNS-35 - Added implementation and test for newly introduced Repository.delete(ID id) method.

This commit is contained in:
Oliver Gierke
2011-05-11 18:39:27 +02:00
parent 30bb367e96
commit ad40b37f40
3 changed files with 34 additions and 0 deletions

View File

@@ -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.
*/