DaggerMock
DaggerMock copied to clipboard
A JUnit rule to easily override Dagger 2 objects
Mockito cannot mock/spy because : - final class I have an object that is being passed into a subcomponent with @BindsInstance. DaggerMock is trying to mock this object even though...
RuntimeException: Error invoking setter with parameter class Module on object DaggerComponentBuilder
Hi there, First off, thank you very much for your library and great work. I've been trying to set up DaggerMock in our project, but I'm running into some problems....
It is currently in below version: ``` @Test public void testOnCreate() { when(restService.executeServerCall()).thenReturn(true); Robolectric.setupActivity(MainActivity.class); } ``` which I changed to below version: ``` @Mock MainPresenter presenter; @Test public void testOnCreate()...
In the newest dagger version the builder is not created with methods for setting the modules but with fields for holding the modules. This fix will try to look for...
Hello. Great library! Might there be any future integration with mockk for kotlin?
I want to write an Espresso test and mock dependencies that are also used in Application's onCreate. I have an app that needs to register lifecycle observers in Application onCreate....
Hi, first off I like your library and I find it quite useful, great job! I have found a small bug, which has a workaround but is quite odd. When...
1. Added ability to return all provided dependencies inside the module as Spies which would help with partial mocking. Fixes #81 Note: Please let me know if you want me...
Thank you very much for the wonderful library. I have been playing around with it and i came across some limitations recently when i was trying to implement a **UI...
First of all congratulations for the awesome library. I am new in mockito and robolectric, and just exploring the features. The following test case how we can write using robolectric....