java.lang.Object
io.helidon.pico.testing.PicoTestingSupport
Supporting helper utilities unit-testing Pico services.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigBasic testable configuration.static voidbind(PicoServices picoServices, ServiceProvider<?> serviceProvider) Provides a means to bind a service provider into theServicesregistry.static voidresetAll()Resets all internal Pico configuration instances, JVM global singletons, service registries, etc.static PicoServicesCreates aPicoServicesinterface more conducive to unit and integration testing.static PicoServicestestableServices(Config config) Creates aPicoServicesinterface 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 Pico configuration instances, JVM global singletons, service registries, etc. -
bind
Provides a means to bind a service provider into theServicesregistry.- Parameters:
picoServices- the pico services instance to bind intoserviceProvider- the service provider to bind- See Also:
-
testableServices
Creates aPicoServicesinterface more conducive to unit and integration testing.- Returns:
- testable services instance
-
testableServices
Creates aPicoServicesinterface 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
-