java.lang.Object
io.helidon.inject.testing.InjectionTestingSupport
Supporting helper utilities unit-testing Injection Services.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Config
Basic testable configuration.static void
bind
(InjectionServices injectionServices, ServiceProvider<?> serviceProvider) Provides a means to bind a service provider into theServices
registry.static void
resetAll()
Resets all internal configuration instances, JVM global singletons, service registries, etc.static InjectionServices
Creates aInjectionServices
interface more conducive to unit and integration testing.static InjectionServices
testableServices
(Config config) Creates aInjectionServices
interface more conducive to unit and integration testing.static String
toDescription
(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 theServices
registry.- Parameters:
injectionServices
- the services instance to bind intoserviceProvider
- the service provider to bind- See Also:
-
testableServices
Creates aInjectionServices
interface more conducive to unit and integration testing.- Returns:
- testable services instance
-
testableServices
Creates aInjectionServices
interface 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
-