|
20 | 20 | import java.time.LocalDate;
|
21 | 21 | import java.util.*;
|
22 | 22 |
|
23 |
| -import org.apache.commons.lang3.time.DateUtils; |
24 | 23 | import org.json.JSONException;
|
25 | 24 | import org.junit.jupiter.api.BeforeEach;
|
26 | 25 | import org.junit.jupiter.api.DisplayName;
|
@@ -109,7 +108,7 @@ void shouldMapNamesAndConvertValuesInCriteriaQuery() throws JSONException {
|
109 | 108 | }
|
110 | 109 |
|
111 | 110 | @Test
|
112 |
| - // DATAES-1668 |
| 111 | + // #1668 |
113 | 112 | void shouldMapNamesAndConvertValuesInCriteriaQueryForSubCriteria() throws JSONException {
|
114 | 113 |
|
115 | 114 | // use POJO properties and types in the query building
|
@@ -184,17 +183,14 @@ void shouldMapNamesAndConvertValuesInCriteriaQueryForSubCriteria() throws JSONEx
|
184 | 183 | }
|
185 | 184 |
|
186 | 185 | @Test
|
187 |
| - // DATAES-1668 |
| 186 | + // #1668 |
188 | 187 | void shouldMapNamesAndConvertValuesInCriteriaQueryForSubCriteriaWithDate() throws JSONException {
|
189 |
| - Calendar calendar = Calendar.getInstance(); |
190 |
| - //calendar.set(1982, Calendar.FEBRUARY, 28, 13, 2, 1 ); |
191 |
| - calendar.setTimeInMillis(383745721653L); |
192 | 188 | // use POJO properties and types in the query building
|
193 | 189 | CriteriaQuery criteriaQuery = new CriteriaQuery( //
|
194 | 190 | Criteria.or()
|
195 | 191 | .subCriteria( Criteria.where("birthDate") //
|
196 | 192 | .between(LocalDate.of(1989, 11, 9), LocalDate.of(1990, 11, 9)) ) //
|
197 |
| - .subCriteria( Criteria.where( "createdDate").is(calendar.getTime()) ) // |
| 193 | + .subCriteria( Criteria.where( "createdDate").is(383745721653L) ) // |
198 | 194 | );
|
199 | 195 |
|
200 | 196 | // mapped field name and converted parameter
|
|
0 commit comments