Uses of Class
nl.pim16aap2.testing.AssistedFactoryMocker
Packages that use AssistedFactoryMocker
Package
Description
This package contains a set of utility classes and methods that are only used for the unit and integration tests in
the other modules.
-
Uses of AssistedFactoryMocker in nl.pim16aap2.testing
Methods in nl.pim16aap2.testing that return AssistedFactoryMockerModifier and TypeMethodDescriptionstatic <T,U> AssistedFactoryMocker <T, U> AssistedFactoryMocker.injectMocksFromTestClass(Class<T> targetClass, Class<U> factoryClass, Object testInstance) Creates a newAssistedFactoryMockerinstance using the mocked objects from the provided test class.static <T,U> AssistedFactoryMocker <T, U> AssistedFactoryMocker.injectMocksFromTestClass(Class<U> factoryClass, Object testInstance) Creates a newAssistedFactoryMockerinstance using the mocked objects from the provided test class.<V> AssistedFactoryMocker<T, U> AssistedFactoryMocker.injectParameter(Class<V> type, @Nullable String name, V value) Sets the mocked instance of a constructor parameter.<V> AssistedFactoryMocker<T, U> AssistedFactoryMocker.injectParameter(Class<V> type, V parameter) AssistedFactoryMocker.injectParameter(Object param) Injects a single parameter into the factory method.AssistedFactoryMocker.injectParameters(Object... params) Injects the parameters in the factory method.