Skip to content
Permalink
Browse files

Merge pull request #140 from abayer/jenkins-33468

[JENKINS-33468] Enable closure implicit parameter test
  • Loading branch information
abayer committed Aug 16, 2017
2 parents 7a81a07 + be7a575 commit 348f1d6c741bd10ec25b45efab027592f07d9351
@@ -344,9 +344,7 @@ public String rawProp5() {
assertRejected(new ProxyWhitelist(), "staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods toInteger java.lang.String", "'123'.toInteger();");
assertEvaluate(new GenericWhitelist(), 123, "'123'.toInteger();");
assertEvaluate(new GenericWhitelist(), Arrays.asList(1, 4, 9), "([1, 2, 3] as int[]).collect({x -> x * x})");
/* TODO JENKINS-33468 No such property: it for class: groovy.lang.Binding:
assertEvaluate(new GenericWhitelist(), Arrays.asList(1, 4, 9), "([1, 2, 3] as int[]).collect({it * it})");
*/
// cover others from DgmConverter:
assertEvaluate(new GenericWhitelist(), "1970", "new Date(0).format('yyyy', TimeZone.getTimeZone('GMT'))");
assertEvaluate(new GenericWhitelist(), /* actual value sensitive to local TZ */ DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM).format(new Date(0)), "new Date(0).dateTimeString");

0 comments on commit 348f1d6

Please sign in to comment.
You can’t perform that action at this time.