Interface RealJenkinsRule.Step

  • All Superinterfaces:
    Enclosing class:
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public static interface RealJenkinsRule.Step
    extends Serializable
    One step to run.

    Since this thunk will be sent to a different JVM, it must be serializable. The test class will certainly not be serializable, so you cannot use an anonymous inner class. If your thunk requires no parameters from the test JVM, the friendliest idiom is a static method reference:

     @Test public void stuff() throws Throwable {
     private static void _stuff(JenkinsRule r) throws Throwable {
         // as needed