@@ -1332,20 +1332,27 @@ Comparator.<ShippingAddress, Long> comparing(o -> o.id)
1332
1332
.map (a -> a .houseNumber + " " + a .streetName )
1333
1333
.collect (Collectors .toList ()));
1334
1334
1335
- // TODO Enable once EclipseLink bug #31558 is fixed:
1336
- // List<ShippingAddress> found = shippingAddresses
1337
- // .findByStreetAddressRecipientInfoNotEmpty();
1335
+ List <ShippingAddress > found = shippingAddresses
1336
+ .findByStreetAddressRecipientInfoNotEmpty ();
1337
+ ShippingAddress a = null ;
1338
+ for (ShippingAddress s : found ) {
1339
+ if (a1 .id .equals (s .id ))
1340
+ a = s ;
1341
+ }
1342
+ // TODO Replace above for loop with the following once EclipseLink bug #31559 is fixed
1338
1343
// assertEquals(1, found.size());
1339
- // ShippingAddress a = found.get(0);
1340
- // assertEquals(a1.id, a.id);
1341
- // assertEquals(a1.city, a.city);
1342
- // assertEquals(a1.state, a.state);
1343
- // assertEquals(a1.zipCode, a.zipCode);
1344
- // assertEquals(a1.streetAddress.houseNumber, a.streetAddress.houseNumber);
1345
- // assertEquals(a1.streetAddress.streetName, a.streetAddress.streetName);
1346
- // assertEquals(a1.streetAddress.recipientInfo, a.streetAddress.recipientInfo);
1347
-
1348
- // assertEquals(3L, shippingAddresses.countByStreetAddressRecipientInfoEmpty());
1344
+ // a = found.get(0);
1345
+ assertEquals (a1 .id , a .id );
1346
+ assertEquals (a1 .city , a .city );
1347
+ assertEquals (a1 .state , a .state );
1348
+ assertEquals (a1 .zipCode , a .zipCode );
1349
+ assertEquals (a1 .streetAddress .houseNumber , a .streetAddress .houseNumber );
1350
+ assertEquals (a1 .streetAddress .streetName , a .streetAddress .streetName );
1351
+ assertEquals (a1 .streetAddress .recipientInfo , a .streetAddress .recipientInfo );
1352
+
1353
+ long count = shippingAddresses .countByStreetAddressRecipientInfoEmpty ();
1354
+ // TODO Enable once EclipseLink bug #31559 is fixed:
1355
+ // assertEquals(3L, count);
1349
1356
1350
1357
// [EclipseLink-4002] Internal Exception: java.sql.SQLIntegrityConstraintViolationException:
1351
1358
// DELETE on table 'SHIPPINGADDRESS' caused a violation of foreign key constraint 'SHPPNGSHPPNGDDRSSD' for key (1001)
@@ -1439,13 +1446,15 @@ public void testEmbeddableCollection() {
1439
1446
.map (t -> t .ssn )
1440
1447
.collect (Collectors .toList ()));
1441
1448
1442
- // TODO enable once issue #31558 and
1443
- // TODO subsequently #32263 is fixed in EclipseLink
1444
- if (false )
1445
- assertIterableEquals (List .of (789007890L ),
1446
- taxpayers .findByBankAccountsNotEmpty ()
1447
- .map (t -> t .ssn )
1448
- .collect (Collectors .toList ()));
1449
+ assertEquals (List .of (123001230L ,
1450
+ 234002340L ,
1451
+ 345003450L ,
1452
+ 456004560L ,
1453
+ 567005670L ,
1454
+ 678006780L ),
1455
+ taxpayers .findByBankAccountsNotEmpty ()
1456
+ .map (t -> t .ssn )
1457
+ .collect (Collectors .toList ()));
1449
1458
1450
1459
taxpayers .delete ();
1451
1460
}
@@ -2007,8 +2016,7 @@ public void testExistsViaQueryLanguage() {
2007
2016
/**
2008
2017
* Verify that JPQL can be used to EXTRACT the DATE from a LocalDateTime.
2009
2018
*/
2010
- // TODO enable once EclipseLink bug #31802 is fixed
2011
- //@Test
2019
+ @ Test
2012
2020
public void testExtractDate () {
2013
2021
rebates .reset ();
2014
2022
@@ -2131,8 +2139,7 @@ public void testExtractFromDateFunction2() {
2131
2139
/**
2132
2140
* Verify that JPQL can be used to EXTRACT the TIME from a LocalDateTime.
2133
2141
*/
2134
- // TODO enable once EclipseLink bug #31802 is fixed
2135
- //@Test
2142
+ @ Test
2136
2143
public void testExtractTime () {
2137
2144
rebates .reset ();
2138
2145
0 commit comments