APT: Add more compiler plugin tests

This commit is contained in:
Yan Zhulanow
2015-05-19 21:56:45 +03:00
parent 594988db51
commit 921017367a
11 changed files with 105 additions and 14 deletions
@@ -0,0 +1,14 @@
package org.test
import javax.inject.*
public class SomeClass {
public val immutableProperty: Int = 5
[Inject] get
public var mutableProperty: String = "String"
[Inject] get
[Inject] set
}
@@ -0,0 +1,8 @@
a javax.inject.Inject 0
p org.test 0
m 0 0/SomeClass getImmutableProperty
a org.jetbrains.annotations.NotNull 1
f 1 0/SomeClass mutableProperty
m 0 0/SomeClass getMutableProperty
m 1 0/SomeClass getMutableProperty
m 0 0/SomeClass setMutableProperty