BAEL-1157: Update list of author names
This commit is contained in:
parent
9fc0aa96d3
commit
efc58b5b79
@ -151,9 +151,9 @@ public class CayenneAdvancedOperationTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenTwoAuthor_whenInObjS_thenWeGetAuthors() {
|
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)
|
List<Author> authors = ObjectSelect.query(Author.class)
|
||||||
.where(Author.NAME.in(Arrays.asList(args)))
|
.where(Author.NAME.in(names))
|
||||||
.select(context);
|
.select(context);
|
||||||
|
|
||||||
assertEquals(authors.size(), 3);
|
assertEquals(authors.size(), 3);
|
||||||
@ -161,9 +161,9 @@ public class CayenneAdvancedOperationTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenTwoAuthor_whenNinObjS_thenWeGetAuthors() {
|
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)
|
List<Author> authors = ObjectSelect.query(Author.class)
|
||||||
.where(Author.NAME.nin(Arrays.asList(args)))
|
.where(Author.NAME.nin(names))
|
||||||
.select(context);
|
.select(context);
|
||||||
Author author = authors.get(0);
|
Author author = authors.get(0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user