@FunctionalInterface public static interface RestartableJenkinsRule.Step
RestartableJenkinsRule.then(org.jvnet.hudson.test.RestartableJenkinsRule.Step).
Closure does not work because it is an abstract class, not an interface.
Callable of Void does not work because you have to return null.
Runnable does not work because it throws no checked exceptions.
Consumer is the same, and is not present in Java 7.
Other candidates had similar issues.| Modifier and Type | Method and Description |
|---|---|
void |
run(JenkinsRule r) |
void run(JenkinsRule r) throws Throwable
ThrowableCopyright © 2004–2019. All rights reserved.