Skip to content
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
3a4cddb
Different types of bean injection in Spring
Aug 19, 2017
28bb7fc
Difference between two dates in java
Aug 24, 2017
03904ad
fix conflicts in pom.xml
Aug 24, 2017
348ff5d
Update README.md
Aug 24, 2017
a663b3c
Simple clean of difference between dates
Aug 25, 2017
114c10c
Merge branch 'master' of https://github.com/eugenp/tutorials
Aug 25, 2017
4f827b9
Clean my test article
Aug 25, 2017
fdaf13c
Merge branch 'master' of https://github.com/eugenp/tutorials
Aug 25, 2017
c4fd005
Improve dates diff: for dates and datetimes
Aug 28, 2017
7a7b674
Fix conflicts in date diff
Aug 28, 2017
82ed948
Move difference between dates from core-java to libraries
Aug 30, 2017
04fa170
fix conflicts
Aug 30, 2017
ee29c4d
Fix conflicts in librarie/pom.xml
Sep 7, 2017
cccaa8c
BAEL-890 - Kotlin-Allopen with Spring example
Sep 7, 2017
28ad804
BAEL-1107 - Introduction to Apache Cayenne Orm
Sep 20, 2017
ebbffc3
Fix conflicts in libraries/pom.xml
Sep 20, 2017
8b9037f
BAEL-1107: update formating and version of libs
Sep 22, 2017
9a9a0fc
Fix conflicts
Sep 22, 2017
44d5a03
BAEL-1107: update properties of Author
Sep 24, 2017
d141f2a
Merge branch 'master' of https://github.com/eugenp/tutorials
Sep 24, 2017
395509b
Merge branch 'master' of https://github.com/eugenp/tutorials
Sep 27, 2017
5672ec1
BAEL-1157: Apache Cayenne - Advanced Querying
Oct 5, 2017
5e1842e
Merge branch 'master' of https://github.com/eugenp/tutorials
Oct 5, 2017
0dbfa53
BAEL-1157: Fix imports
Oct 5, 2017
3f825c5
BAEL-1157: code indentation
Oct 5, 2017
9fc0aa9
Merge branch 'master' of https://github.com/eugenp/tutorials
Oct 9, 2017
efc58b5
BAEL-1157: Update list of author names
Oct 9, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -151,20 +151,20 @@ public void givenTwoAuthor_whenEndsWithObjS_thenWeGetOrderedAuthors() {

@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);
Expand Down