Update list of author names
@@ -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);
