DATAJPA-111 - Removed unnecessary em.clear() from mass delete methods.

This commit is contained in:
Oliver Gierke
2011-10-12 11:36:33 +02:00
parent c8a0f0d3b6
commit db8aebe4d7
2 changed files with 3 additions and 7 deletions

View File

@@ -184,16 +184,14 @@ public class UserRepositoryTests {
assertNull(repository.findOne(firstUser.getId()));
}
/**
* Tests deleting a user.
*/
@Test
public void testDelete() {
flushTestUsers();
repository.delete(firstUser);
assertNull(repository.findOne(id));
assertThat(repository.exists(id), is(false));
assertThat(repository.findOne(id), is(nullValue()));
}
@Test
@@ -330,7 +328,7 @@ public class UserRepositoryTests {
repository.deleteAll();
assertEquals(0L, repository.count());
assertThat(repository.count(), is(0L));
}
/**