src/test/java/fi/hh/jsonresume/domain/ResumeRepositoryTest.java
@Test
	public void deleteResumes() {
		for (int i=0; i < 5; i++) {
			entityManager.persistAndFlush(new Resume());
		}
		repository.deleteAll();
		assertThat(repository.findAll()).isEmpty();
	}
// Test that entities are correctly deleted from database
Test that entities are correctly deleted from database
Test that entities are correctly deleted from database
@Test
	public void deleteResumes() {
		for (int i=0; i < 5; i++) {
			entityManager.persistAndFlush(new Resume());
		}
		repository.deleteAll();
		assertThat(repository.findAll()).isEmpty();
	}
@ Test public void deleteResumes ( ) { for ( int i = 0 ; i < 5 ; i ++ ) { entityManager . persistAndFlush ( new Resume ( ) ) ; } repository . deleteAll ( ) ; assertThat ( repository . findAll ( ) ) . isEmpty ( ) ; }
Test that entities are correctly deleted from database
Test that entities are correctly deleted from database