package de.cronn.gradle.playground.service;


import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;

import org.junit.Test;

import de.cronn.gradle.playground.Person;

public class PersonServiceIntegrationTest {
	@Test
	public void testEmpyDbReturnsNull() {
		PersonService classUnderTest = new PersonServiceInMemoryImpl();
		assertNull(classUnderTest.find("foo"));
	}

	@Test
	public void testDelete() {
		PersonService classUnderTest = new PersonServiceInMemoryImpl().add(new Person("Essmeyer"));
		assertNotNull(classUnderTest.delete("Essmeyer"));
	}
}

@@ -533,22 +533,31 @@
 ;%0A%09%09
-assertNotNull(
+Person deletedPerson = 
 clas
@@ -581,20 +581,99 @@
 (%22Essmeyer%22)
+;%0A%09%09assertNotNull(deletedPerson);%0A%09%09assertNotNull(deletedPerson.getFirstNames()
 );%0A%09%7D%0A%7D%0A

add integration test