From e822a1612b9121106a2644931e0717ddf8804bfe Mon Sep 17 00:00:00 2001 From: Mike Thomsen Date: Mon, 19 Aug 2019 21:15:24 -0400 Subject: [PATCH] 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. --- .../apache/nifi/processors/mongodb/GetMongoRecordIT.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/test/groovy/org/apache/nifi/processors/mongodb/GetMongoRecordIT.groovy b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/test/groovy/org/apache/nifi/processors/mongodb/GetMongoRecordIT.groovy index fe219779f8..61a99a954d 100644 --- a/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/test/groovy/org/apache/nifi/processors/mongodb/GetMongoRecordIT.groovy +++ b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/test/groovy/org/apache/nifi/processors/mongodb/GetMongoRecordIT.groovy @@ -58,8 +58,8 @@ class GetMongoRecordIT { static final List 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