Package io.micronaut.test.support
Interface TestPropertyProviderFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A test property provider factory is responsible for generating
a test property provider which is going to be called during test
setup, as any other
TestPropertyProvider
. However, such
a provider is discovered via service loading, and has access to
the current test class, as well as the currently available set
of resolved test properties.
This can be used as an extension mechanism for modules which
can provide test properties, for example Micronaut Test Resources.- Since:
- 4.0.0
-
Method Summary
-
Method Details
-
create
Creates a new test property provider.- Parameters:
availableProperties
- the test properties which are already resolved at the point this method is called.testClass
- the test class- Returns:
- a test property provider
-