-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Description
Does Espresso allow a way to run setup code for tests using AndroidJUnit4.class
before Application.onCreate() is called by Instrumentation?
I am using Dagger 2 to inject dependencies in Application.onCreate(). It would be really useful for testing to first be able to set my Components with mock dependencies however I'm finding that Application.onCreate always gets called first before anything else.
I've tried using a static { } block and also @BeforeClass annotation but this doesn't work.
Metadata
Metadata
Assignees
Labels
No labels