Interface MockCallable<T>

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

    @FunctionalInterface
    public interface MockCallable<T>
    An FunctionalInterface that wraps mockable code.
    Author:
    Lukas Eder
    • Method Detail

      • run

        T run​(Configuration configuration)
        throws java.lang.Exception
        Run the mockable code.
        Parameters:
        configuration - The MockConfiguration that executes all queries using a MockConnection and the supplied MockDataProvider.
        Returns:
        The outcome of the mockable code.
        Throws:
        java.lang.Exception - Any exception.