- All Superinterfaces:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This hook can only be used in simple cases, since parameter resolution is currently unavailable to implementors.
Caveat: Only one hook per property method is possible.
DEFAULTstatic final ProvidePropertyInstanceHook DEFAULT
provideCreate the test instance for running a property or example. You may want to override the default call if provision does something else than plain instance creation from class.
This method will be called exactly once per property. All tries share the same instance!
containerClass- The container class which runs the test
- an object that must be assignable to