Tests: add some test cases for inheritor search
Refactor inheritor search tests to be generated
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package a.b
|
||||
|
||||
annotation class Anno
|
||||
|
||||
// CLASS: java.lang.annotation.Annotation
|
||||
// SEARCH: class:Anno
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
enum class A {
|
||||
E;
|
||||
}
|
||||
|
||||
// CLASS: java.lang.Enum
|
||||
// SEARCH: class:A
|
||||
|
||||
// IGNORE_CLASSES: java.
|
||||
// IGNORE_CLASSES: javax.
|
||||
// IGNORE_CLASSES: sun.
|
||||
// IGNORE_CLASSES: org.
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package a.b
|
||||
|
||||
interface I: J {
|
||||
|
||||
}
|
||||
|
||||
interface J {
|
||||
|
||||
}
|
||||
|
||||
// CLASS: a.b.J
|
||||
// SEARCH: class:I
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
object A : B()
|
||||
|
||||
open class B {
|
||||
|
||||
}
|
||||
// CLASS: B
|
||||
// SEARCH: class:A
|
||||
@@ -0,0 +1,9 @@
|
||||
class A
|
||||
|
||||
// CLASS: java.lang.Object
|
||||
// SEARCH: class:A
|
||||
|
||||
// IGNORE_CLASSES: java.
|
||||
// IGNORE_CLASSES: javax.
|
||||
// IGNORE_CLASSES: sun.
|
||||
// IGNORE_CLASSES: org.
|
||||
Reference in New Issue
Block a user