mirror of https://github.com/apache/nifi.git
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:
parent
81136bf550
commit
e822a1612b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue