Plugin that supports easy usage of Dagger 2 library in IntelliJ iDEA or Android Studio
IntelliJ iDEA plugin to work with Java/Kotlin projects using Dagger 2 library
You can install the plugin from Preferences
-> Plugins
and search for the plugin. You can also download the plugin from the intelliJ iDEA Marketplace.
All validation logic are unit tested. The test data is organised in the following structure:
src
|_test
|_testData
|_component
|_ ... (directory for each error highlight)
|_inject
|_ ... (directory for each error highlight)
For each error highlight multiple test cases are written. You will notice that there are no test cases under
test/kotlin/com.madrapps.dagger
. For each annotation there will be a KT test file annotated with GenerateTest
.
The test cases (classes and methods) are created at compile time by means of the annotation processor:
dagger-plugin-processor
. The above testData
directory structure is crucial for the processor to work properly.
For more clarity, take a look at src/test/kotlin/com.madrapps.dagger.InjectTestCase.kt