Add tests for ClassInheritorsSearch and AnnotatedMembersSearch

Add test for junit
This commit is contained in:
Natalia.Ukhorskaya
2012-10-05 11:51:48 +04:00
parent 727414ba22
commit 7de6c30506
11 changed files with 376 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import junit.framework.TestCase
class Test1: TestCase() {
fun test1() {}
}
class Test2: junit.framework.TestCase() {
fun test2() {}
}
// CLASS: junit.framework.TestCase
// SEARCH: JetLightClass:Test1, JetLightClass:Test2
+20
View File
@@ -0,0 +1,20 @@
import org.junit.Test
class MyTestClass {
[org.junit.Test] fun test1() {}
org.junit.Test fun test2() {}
[Test] fun test3() {}
Test fun test4() {}
[Deprecated org.junit.Test] fun test5() {}
[Deprecated Test] fun test6() {}
fun test7() {}
}
// ANNOTATION: org.junit.Test
// SEARCH: PsiMethod:test1, PsiMethod:test2, PsiMethod:test3, PsiMethod:test4, PsiMethod:test5, PsiMethod:test6