java.lang.Object
io.helidon.inject.testing.InjectionTestingSupport
Supporting helper utilities unit-testing Injection Services.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigBasic testable configuration.static voidbind(InjectionServices injectionServices, ServiceProvider<?> serviceProvider) Provides a means to bind a service provider into theServicesregistry.static voidresetAll()Resets all internal configuration instances, JVM global singletons, service registries, etc.static InjectionServicesCreates aInjectionServicesinterface more conducive to unit and integration testing.static InjectionServicestestableServices(Config config) Creates aInjectionServicesinterface more conducive to unit and integration testing.static StringtoDescription(Object providerOrInstance) Describe the provided instance or provider.toDescriptions(Collection<?> coll) Describe the provided instance or provider collection.
-
Method Details
-
resetAll
public static void resetAll()Resets all internal configuration instances, JVM global singletons, service registries, etc. -
bind
Provides a means to bind a service provider into theServicesregistry.- Parameters:
injectionServices- the services instance to bind intoserviceProvider- the service provider to bind- See Also:
-
testableServices
Creates aInjectionServicesinterface more conducive to unit and integration testing.- Returns:
- testable services instance
-
testableServices
Creates aInjectionServicesinterface more conducive to unit and integration testing.- Parameters:
config- the config to use- Returns:
- testable services instance
- See Also:
-
basicTestableConfig
Basic testable configuration.- Returns:
- testable config
-
toDescription
Describe the provided instance or provider.- Parameters:
providerOrInstance- the instance to provider- Returns:
- the description of the instance
-
toDescriptions
Describe the provided instance or provider collection.- Parameters:
coll- the instance to provider collection- Returns:
- the description of the instance
-