-
- 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>
AnFunctionalInterface
that wraps mockable code.- Author:
- Lukas Eder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
run(Configuration configuration)
Run the mockable code.
-
-
-
Method Detail
-
run
T run(Configuration configuration) throws Exception
Run the mockable code.- Parameters:
configuration
- TheMockConfiguration
that executes all queries using aMockConnection
and the suppliedMockDataProvider
.- Returns:
- The outcome of the mockable code.
- Throws:
Exception
- Any exception.
-
-