From f6f1e0df5a666b65e96a089f1675e7bffde30558 Mon Sep 17 00:00:00 2001 From: Marcus Holl Date: Wed, 26 Jun 2019 17:05:11 +0200 Subject: [PATCH] fileExists also with map --- test/groovy/util/JenkinsFileExistsRule.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/test/groovy/util/JenkinsFileExistsRule.groovy b/test/groovy/util/JenkinsFileExistsRule.groovy index 024ab02ff..9f88c38a0 100644 --- a/test/groovy/util/JenkinsFileExistsRule.groovy +++ b/test/groovy/util/JenkinsFileExistsRule.groovy @@ -26,6 +26,7 @@ class JenkinsFileExistsRule implements TestRule { void evaluate() throws Throwable { testInstance.helper.registerAllowedMethod('fileExists', [String.class], {s -> return s in existingFiles}) + testInstance.helper.registerAllowedMethod('fileExists', [Map.class], {m -> return m.file in existingFiles}) base.evaluate() }