aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/model/ClassesTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/src/test/kotlin/model/ClassesTest.kt')
-rw-r--r--plugins/base/src/test/kotlin/model/ClassesTest.kt18
1 files changed, 16 insertions, 2 deletions
diff --git a/plugins/base/src/test/kotlin/model/ClassesTest.kt b/plugins/base/src/test/kotlin/model/ClassesTest.kt
index 2f83d8c0..166a72e3 100644
--- a/plugins/base/src/test/kotlin/model/ClassesTest.kt
+++ b/plugins/base/src/test/kotlin/model/ClassesTest.kt
@@ -402,9 +402,23 @@ class ClassesTest : AbstractModelTest("/src/main/kotlin/classes/Test.kt", "class
}
}
+ @Test fun annotatedClass() {
+ inlineModelTest(
+ """@Suppress("abc") class Foo() {}"""
+ ) {
+ with((this / "classes" / "Foo").cast<Class>()) {
+ with(extra[Annotations]?.content?.firstOrNull().assertNotNull("annotations")) {
+ dri.toString() equals "kotlin/Suppress////"
+ with(params["names"].assertNotNull("param")) {
+ this equals "[\"abc\"]"
+ }
+ }
+ }
+ }
+ }
+
// TODO annotations
-// @Test
-// fun annotatedClass() {
+// @Test fun annotatedClass() {
// verifyPackageMember("testdata/classes/annotatedClass.kt", ModelConfig(
// analysisPlatform = analysisPlatform,
// withKotlinRuntime = true