NIFI-6572 Added a workaround for GetMongoRecordIT that fixes a weird issue with Groovy where the Groovy addons don't appear to be getting recognized for java.util.Date.

This commit is contained in:
Mike Thomsen 2019-08-19 21:15:24 -04:00
parent 81136bf550
commit e822a1612b
No known key found for this signature in database
GPG Key ID: 88511C3D4CAD246F
1 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,8 @@ class GetMongoRecordIT {
static final List<Map> SAMPLES = [
[ name: "John Smith", failedLogins: 2, lastLogin: Calendar.instance.time ],
[ name: "Jane Doe", failedLogins: 1, lastLogin: Calendar.instance.time - 360000 ],
[ name: "John Brown", failedLogins: 4, lastLogin: Calendar.instance.time - 10000 ]
[ name: "Jane Doe", failedLogins: 1, lastLogin: new Date(Calendar.instance.time.time - 360000) ],
[ name: "John Brown", failedLogins: 4, lastLogin: new Date(Calendar.instance.time.time - 10000) ]
].collect { new Document(it) }
@Before