BAEL-1157: update list of author names (#2720)

* Different types of bean injection in Spring

* Difference between two dates in java

* Update README.md

* Simple clean of difference between dates

* Clean my test article

* Improve dates diff: for dates and datetimes

* Move difference between dates from core-java to libraries

* BAEL-890 - Kotlin-Allopen with Spring example

* BAEL-1107 - Introduction to Apache Cayenne Orm

* BAEL-1107: update formating and version of libs

* BAEL-1107: update properties of Author

* BAEL-1157: Apache Cayenne - Advanced Querying

* BAEL-1157: Fix imports

* BAEL-1157: code indentation

* BAEL-1157: Update list of author names
This commit is contained in:
Dassi orleando 2017-10-09 18:19:26 +01:00 committed by maibin
parent a48a401dc2
commit 0f3df12fed
1 changed files with 6 additions and 6 deletions

View File

@ -151,20 +151,20 @@ 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)))
.select(context);
.where(Author.NAME.in(names))
.select(context);
assertEquals(authors.size(), 3);
}
@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)))
.select(context);
.where(Author.NAME.nin(names))
.select(context);
Author author = authors.get(0);
assertEquals(authors.size(), 1);