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(io.helidon.inject.api.InjectionServices injectionServices, io.helidon.inject.api.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 io.helidon.inject.api.InjectionServicesCreates aInjectionServicesinterface more conducive to unit and integration testing.static io.helidon.inject.api.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
public static void bind(io.helidon.inject.api.InjectionServices injectionServices, io.helidon.inject.api.ServiceProvider<?> serviceProvider) 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
public static io.helidon.inject.api.InjectionServices 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
-