BAEL-1157: Update list of author names

This commit is contained in:
Dassi Orleando 2017-10-09 17:31:54 +01:00
parent 9fc0aa96d3
commit efc58b5b79

View File

@ -151,9 +151,9 @@ public class CayenneAdvancedOperationTests {
@Test
public void givenTwoAuthor_whenInObjS_thenWeGetAuthors() {
String [] args = {"Paul Xavier", "pAuL Smith", "Vicky Sarra"};
List<String> names = Arrays.asList("Paul Xavier", "pAuL Smith", "Vicky Sarra");
List<Author> authors = ObjectSelect.query(Author.class)
.where(Author.NAME.in(Arrays.asList(args)))
.where(Author.NAME.in(names))
.select(context);
assertEquals(authors.size(), 3);
@ -161,9 +161,9 @@ public class CayenneAdvancedOperationTests {
@Test
public void givenTwoAuthor_whenNinObjS_thenWeGetAuthors() {
String [] args = {"Paul Xavier", "pAuL Smith"};
List<String> names = Arrays.asList("Paul Xavier", "pAuL Smith");
List<Author> authors = ObjectSelect.query(Author.class)
.where(Author.NAME.nin(Arrays.asList(args)))
.where(Author.NAME.nin(names))
.select(context);
Author author = authors.get(0);