Fixed unit tests due to changes in exception messages

This commit is contained in:
Michael Minella
2016-11-21 15:20:49 -06:00
parent 80a153527f
commit 8a2b23d669
2 changed files with 10 additions and 9 deletions

View File

@@ -43,9 +43,9 @@ public class JpaPagingItemReaderIntegrationTests extends AbstractGenericDataSour
String jpqlQuery = "select f from Foo f where name like :name";
JpaPagingItemReader<Foo> inputSource = new JpaPagingItemReader<Foo>();
JpaPagingItemReader<Foo> inputSource = new JpaPagingItemReader<>();
inputSource.setQueryString(jpqlQuery);
inputSource.setParameterValues(Collections.singletonMap("name", (Object)"bar%"));
inputSource.setParameterValues(Collections.singletonMap("name", "bar%"));
inputSource.setEntityManagerFactory(entityManagerFactory);
inputSource.setPageSize(3);
inputSource.afterPropertiesSet();