@NotNull abstract fun <T : Any!> create(@NotNull clazz: Class<T>): T
Create a real object injected with mockspresso dependencies.
clazz
- Class<T>: The class you want to create an instance of.
Return
T: An instance of T
@NotNull abstract fun <T : Any!> create(@NotNull typeToken: TypeToken<T>): T
Create a real object injected with mockspresso dependencies.
typeToken
- TypeToken<T>: The class you want to create an instance of.
Return
T: An instance of T