Make annotation collector tests more thorough

This commit is contained in:
Alexey Tsvetkov
2016-04-15 00:25:56 +03:00
parent e84ae5117d
commit 12531c4a90
16 changed files with 166 additions and 17 deletions
@@ -1,3 +1,8 @@
a java.lang.Deprecated 0
a java.lang.annotation.Retention 0
p org.test 0
m 0 0/SomeClass$annotatedFunction$1 invoke
c 0 0/Ann
a org.test.Ann 1
m 1 0/Parent overridenWithoutAnnotation
m 1 0/Parent notOverriden
m 1 0/Child overridenWithAnnotation
m 1 0/Child childMethod
@@ -1,13 +1,25 @@
package org.test
public class SomeClass {
annotation class Ann
public fun annotatedFunction() {
open class Parent {
@Ann
open fun overridenWithoutAnnotation() {}
@java.lang.Deprecated fun localFunction() {
open fun overridenWithAnnotation() {}
}
@Ann
fun notOverriden() {}
}
open fun notAnnotated() {}
}
class Child : Parent() {
override fun overridenWithoutAnnotation() {}
@Ann
override fun overridenWithAnnotation() {}
@Ann
fun childMethod() {}
}