Skip to content

Commit

Permalink
Merge pull request #140 from abayer/jenkins-33468
Browse files Browse the repository at this point in the history
[JENKINS-33468] Enable closure implicit parameter test
  • Loading branch information
abayer committed Aug 16, 2017
2 parents 7a81a07 + be7a575 commit 348f1d6
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -344,9 +344,7 @@ public static final class Special {
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");
Expand Down

0 comments on commit 348f1d6

Please sign in to comment.