DaggerMock icon indicating copy to clipboard operation
DaggerMock copied to clipboard

A JUnit rule to easily override Dagger 2 objects

Results 33 DaggerMock issues
Sort by recently updated
recently updated
newest added

Component.Factory is a much simpler way to create a component than the builder pattern. THere's a lot less boilerplate code, plus it mostly forces you into having no arg constructors...

Hi, I have project with android library where I trying use your library, when I start tests then following error occurs: ``` org.mockito.exceptions.base.MockitoException: Cannot mock/spy class com.example.AppModule Mockito cannot mock/spy...

I have multiple test classes and once I inject module this module now is used in all other test classes until I reinject application component. I wanted to ask if...

Hi! Thanks for a great library, this is going to make my testing much, much easier 😃 I am trying to test a class which has its dependencies configured by...

The Gradle dependencies for Java in the `README.md` over Repository `https://jitpack.io/` are wrong and I assume the dependencies for kotlin too. Corrected for Java: ``` groovy dependencies { testImplementation 'com.github.fabioCollini:DaggerMock:0.8.5'...

Is it possible to get a method callback to the customized DaggerMockRule? (Usage : I want to close the mocked db) Current implementation ```kotlin @get:Rule val mockDbRule = DaggerMockDbRule() @After...

Hi, first of all congratulations and thanks for the library, because to be honest setting up Dagger is really cumbersome. I'm trying DaggerMock for the first time to mock my...

Hi I've been looking for something like this library for a long time, this is awesome!. Currently I create TestModules full of mock(X.class) replicating the dependencies I need from real...

Can mocked data be combined with jmockdata(https://github.com/jsonzou/jmockdata)