Dagger2 simple example
This example demonstrates inversion of control in android archive (AAR) module by using dagger2. The application is using the production code from the AAR, while the test inject a mock dependency.
- SomeModule is your production module.
- SomeClass is a class from your production module that has an internal dependency.
- DependencyClass is your production code dependency you would like to mock in your tests.