An open API service indexing awesome lists of open source software.

https://github.com/egorand/android-dagger-overrides

An example of configuring Dagger modules to provide test doubles, covers both Dagger 1 and Dagger 2.
https://github.com/egorand/android-dagger-overrides

android android-dagger dagger dependency-injection

Last synced: about 2 months ago
JSON representation

An example of configuring Dagger modules to provide test doubles, covers both Dagger 1 and Dagger 2.

Awesome Lists containing this project

README

        

# android-dagger-overrides

An example of configuring Dagger modules to provide test doubles.
Check [Providing test doubles with Dagger 1 and Dagger 2](http://blog.egorand.me/providing-test-doubles-with-dagger-1-and-dagger-2/).

This repo contains the following branches:

- dagger1-overrides - demonstrates the creation of a test module using the overrides parameter in Dagger 1
- [dagger1](https://github.com/Egorand/android-dagger-overrides/tree/dagger1) -
demonstrates a clean solution using separate modules in Dagger 1
- [dagger2-overrides](https://github.com/Egorand/android-dagger-overrides/tree/dagger2-overrides) -
demonstrates a hacky solution to override a module in Dagger 2
- [dagger2](https://github.com/Egorand/android-dagger-overrides/tree/dagger2) -
demonstrates a clean solution using separate modules in Dagger 2

License
-------

Copyright 2016 Egor Andreevici

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.