aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/content
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2023-07-26 16:18:35 +0300
committerGitHub <noreply@github.com>2023-07-26 16:18:35 +0300
commit2c01749e5213e030ca32dd04058d478a65951fed (patch)
treef4050f25d1ecfe05a289dc38ffebb8cccc63fea1 /plugins/base/src/test/kotlin/content
parent900fbccf3da483946227d99ce52b71afe0e62007 (diff)
downloaddokka-2c01749e5213e030ca32dd04058d478a65951fed.tar.gz
dokka-2c01749e5213e030ca32dd04058d478a65951fed.tar.bz2
dokka-2c01749e5213e030ca32dd04058d478a65951fed.zip
Fix some tests to be compatible with K2 (#3086)
Diffstat (limited to 'plugins/base/src/test/kotlin/content')
-rw-r--r--plugins/base/src/test/kotlin/content/annotations/ContentForAnnotationsTest.kt2
-rw-r--r--plugins/base/src/test/kotlin/content/annotations/KotlinDeprecatedTest.kt20
2 files changed, 11 insertions, 11 deletions
diff --git a/plugins/base/src/test/kotlin/content/annotations/ContentForAnnotationsTest.kt b/plugins/base/src/test/kotlin/content/annotations/ContentForAnnotationsTest.kt
index 2659fd86..46239baa 100644
--- a/plugins/base/src/test/kotlin/content/annotations/ContentForAnnotationsTest.kt
+++ b/plugins/base/src/test/kotlin/content/annotations/ContentForAnnotationsTest.kt
@@ -180,7 +180,7 @@ class ContentForAnnotationsTest : BaseAbstractTest() {
|
|@MustBeDocumented
|@Retention(AnnotationRetention.SOURCE)
- |@Target(AnnotationTarget.FIELD)
+ |@Target(AnnotationTarget.PROPERTY)
|annotation class BugReport(
| val assignedTo: String = "[none]",
| val testCase: KClass<ABC> = ABC::class,
diff --git a/plugins/base/src/test/kotlin/content/annotations/KotlinDeprecatedTest.kt b/plugins/base/src/test/kotlin/content/annotations/KotlinDeprecatedTest.kt
index 83517254..417843e2 100644
--- a/plugins/base/src/test/kotlin/content/annotations/KotlinDeprecatedTest.kt
+++ b/plugins/base/src/test/kotlin/content/annotations/KotlinDeprecatedTest.kt
@@ -33,7 +33,7 @@ class KotlinDeprecatedTest : BaseAbstractTest() {
testInline(
"""
|/src/main/kotlin/kotlin/KotlinFile.kt
- |package kotlin
+ |package deprecated
|
|@Deprecated(
| message = "Fancy message"
@@ -44,7 +44,7 @@ class KotlinDeprecatedTest : BaseAbstractTest() {
) {
documentablesTransformationStage = { module ->
val deprecatedFunction = module.children
- .single { it.name == "kotlin" }.children
+ .single { it.name == "deprecated" }.children
.single { it.name == "simpleFunction" }
val isDeprecated = (deprecatedFunction as WithExtraProperties<out Documentable>).isDeprecated()
@@ -65,7 +65,7 @@ class KotlinDeprecatedTest : BaseAbstractTest() {
testInline(
"""
|/src/main/kotlin/kotlin/DeprecatedKotlin.kt
- |package kotlin
+ |package deprecated
|
|/**
| * Average function description
@@ -84,7 +84,7 @@ class KotlinDeprecatedTest : BaseAbstractTest() {
) {
pagesTransformationStage = { module ->
val functionWithDeprecatedFunction = module.children
- .single { it.name == "kotlin" }.children
+ .single { it.name == "deprecated" }.children
.single { it.name == "oldLegacyFunction" } as ContentPage
functionWithDeprecatedFunction.content.assertNode {
@@ -130,7 +130,7 @@ class KotlinDeprecatedTest : BaseAbstractTest() {
testInline(
"""
|/src/main/kotlin/kotlin/DeprecatedKotlin.kt
- |package kotlin
+ |package deprecated
|
|/**
| * Average function description
@@ -156,7 +156,7 @@ class KotlinDeprecatedTest : BaseAbstractTest() {
) {
pagesTransformationStage = { module ->
val functionWithDeprecatedFunction = module.children
- .single { it.name == "kotlin" }.children
+ .single { it.name == "deprecated" }.children
.single { it.name == "oldLegacyFunction" } as ContentPage
functionWithDeprecatedFunction.content.assertNode {
@@ -217,7 +217,7 @@ class KotlinDeprecatedTest : BaseAbstractTest() {
testInline(
"""
|/src/main/kotlin/kotlin/DeprecatedKotlin.kt
- |package kotlin
+ |package deprecated
|
|/**
| * Average function description
@@ -240,7 +240,7 @@ class KotlinDeprecatedTest : BaseAbstractTest() {
) {
pagesTransformationStage = { module ->
val functionWithDeprecatedFunction = module.children
- .single { it.name == "kotlin" }.children
+ .single { it.name == "deprecated" }.children
.single { it.name == "oldLegacyFunction" } as ContentPage
functionWithDeprecatedFunction.content.assertNode {
@@ -298,7 +298,7 @@ class KotlinDeprecatedTest : BaseAbstractTest() {
testInline(
"""
|/src/main/kotlin/kotlin/DeprecatedKotlin.kt
- |package kotlin
+ |package deprecated
|
|/**
| * Average function description
@@ -330,7 +330,7 @@ class KotlinDeprecatedTest : BaseAbstractTest() {
) {
pagesTransformationStage = { module ->
val functionWithDeprecatedFunction = module.children
- .single { it.name == "kotlin" }.children
+ .single { it.name == "deprecated" }.children
.single { it.name == "oldLegacyFunction" } as ContentPage
functionWithDeprecatedFunction.content.assertNode {