upgrade and add test
This commit is contained in:
@@ -83,6 +83,13 @@ public abstract class PersonServiceTest extends IntegrationTest {
|
||||
assertTrue(allResultsContainExpectedLastName(resultList, expectedLastName));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenFindingByFirstNameJohn_thenReturnsOnePersonNamedJohn() {
|
||||
final String expectedFirstName = john;
|
||||
final List<Person> resultList = personService.findByFirstName(expectedFirstName);
|
||||
assertTrue(resultList.size() == 1);
|
||||
}
|
||||
|
||||
private boolean resultContains(List<Person> resultList, Person person) {
|
||||
boolean found = false;
|
||||
for (final Person p : resultList) {
|
||||
|
||||
Reference in New Issue
Block a user