upgrade and add test
This commit is contained in:
parent
882a9b5d50
commit
a75cad61f3
|
@ -93,7 +93,7 @@
|
|||
<java.version>1.7</java.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<spring-framework.version>4.2.4.RELEASE</spring-framework.version>
|
||||
<spring-data-couchbase.version>2.0.0.RELEASE</spring-data-couchbase.version>
|
||||
<spring-data-couchbase.version>2.1.1.RELEASE</spring-data-couchbase.version>
|
||||
<hibernate-validator.version>5.2.4.Final</hibernate-validator.version>
|
||||
<joda-time.version>2.9.2</joda-time.version>
|
||||
<logback.version>1.1.3</logback.version>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue