How to generate DaggerComponent class in the test/java folder?
<p>I'm new to Dagger 2 and I'm working on using Dagger 2 for unit tests. I would like to test my presenter and mock some of the datasources(Server connection, SharedPreferences).<br>
For the SharedPreferences I have <code>SharedPreferencesComponent</code> in the <code>main</code> folder and <code>SharedPreferencesComponentFake</code> in the <code>test/java</code> folder. The problem is that dagger can't generate <code>DaggerSharedPreferencesComponentFake</code> therefore I can't inject <code>SharedPreferencesFake</code> instead the SharedPreferences.
How can i set up so dagger will generate the DaggerSharedPreferencesFake class , or am I using dagger 2 in the wrong way</p>