aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/enums
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-06-10 11:52:29 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-06-25 14:56:46 +0200
commit75efaa5662fd7bfe9ada0756509f34bdb35f3341 (patch)
treea591abc5c1f461ad4660f521b58d5597642df12b /plugins/base/src/test/kotlin/enums
parentcc89f0b74a870303c854fcb892d469d4c8fb17a8 (diff)
downloaddokka-75efaa5662fd7bfe9ada0756509f34bdb35f3341.tar.gz
dokka-75efaa5662fd7bfe9ada0756509f34bdb35f3341.tar.bz2
dokka-75efaa5662fd7bfe9ada0756509f34bdb35f3341.zip
Tests for SinceKotlin and Deprecated
Diffstat (limited to 'plugins/base/src/test/kotlin/enums')
-rw-r--r--plugins/base/src/test/kotlin/enums/EnumsTest.kt16
1 files changed, 4 insertions, 12 deletions
diff --git a/plugins/base/src/test/kotlin/enums/EnumsTest.kt b/plugins/base/src/test/kotlin/enums/EnumsTest.kt
index 7feba710..695a8fd2 100644
--- a/plugins/base/src/test/kotlin/enums/EnumsTest.kt
+++ b/plugins/base/src/test/kotlin/enums/EnumsTest.kt
@@ -6,9 +6,7 @@ import org.jetbrains.dokka.model.DEnum
import org.jetbrains.dokka.pages.*
import org.jetbrains.dokka.testApi.testRunner.AbstractCoreTest
import org.junit.jupiter.api.Assertions.*
-import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
-import utils.unwrapAnnotation
class EnumsTest : AbstractCoreTest() {
@@ -177,7 +175,6 @@ class EnumsTest : AbstractCoreTest() {
}
}
- @Disabled
@Test
fun enumWithAnnotationsOnEntries(){
val configuration = dokkaConfiguration {
@@ -197,7 +194,7 @@ class EnumsTest : AbstractCoreTest() {
| /**
| Sample docs for E1
| **/
- | @SinceKotlin("1.3")
+ | @SinceKotlin("1.3") // This annotation is transparent due to lack of @MustBeDocumented annotation
| E1
|}
""".trimMargin(),
@@ -216,14 +213,9 @@ class EnumsTest : AbstractCoreTest() {
}
}
group {
- mapOf("SinceKotlin" to setOf("version")).entries.forEach {
- group {
- group {
- unwrapAnnotation(it)
- }
- link { +"E1" }
- +"()"
- }
+ group {
+ link { +"E1" }
+ +"()"
}
}
}