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