mockspresso-api / com.episode6.hackit.mockspresso / Mockspresso / Builder / testResourcesWithoutLifecycle

testResourcesWithoutLifecycle

@NotNull abstract fun testResourcesWithoutLifecycle(@NotNull objectWithResources: Any): Mockspresso.Builder

Scans the included objectWithResources for fields annotated with @Mock and @RealObject, then prepares them and adds them to our dependency map. Mockspresso will not call any methods on objects added via this method.

Parameters

objectWithResources - Any: The object to scan and set fields on

Return
Mockspresso.Builder: this