aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/content
diff options
context:
space:
mode:
authorvmishenev <vad-mishenev@yandex.ru>2021-07-28 14:51:01 +0300
committervmishenev <vad-mishenev@yandex.ru>2021-07-30 01:33:35 +0300
commitbcebddee24d13b991c2afa2443689dc651539bb0 (patch)
tree3d96698d82c6f1446a43d1dabb12579e993bb56d /plugins/base/src/test/kotlin/content
parent85cec2dd7ae435d84bad0721c6fd79e9c644c275 (diff)
downloaddokka-bcebddee24d13b991c2afa2443689dc651539bb0.tar.gz
dokka-bcebddee24d13b991c2afa2443689dc651539bb0.tar.bz2
dokka-bcebddee24d13b991c2afa2443689dc651539bb0.zip
Add boolean, nullable types of annotation parameter value
Diffstat (limited to 'plugins/base/src/test/kotlin/content')
-rw-r--r--plugins/base/src/test/kotlin/content/annotations/ContentForAnnotationsTest.kt9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/base/src/test/kotlin/content/annotations/ContentForAnnotationsTest.kt b/plugins/base/src/test/kotlin/content/annotations/ContentForAnnotationsTest.kt
index 5ea792f0..c48ddedf 100644
--- a/plugins/base/src/test/kotlin/content/annotations/ContentForAnnotationsTest.kt
+++ b/plugins/base/src/test/kotlin/content/annotations/ContentForAnnotationsTest.kt
@@ -188,6 +188,7 @@ class ContentForAnnotationsTest : BaseAbstractTest() {
| val ref: Reference = Reference(value = 1),
| val reportedBy: Array<Reference>,
| val showStopper: Boolean = false
+ | val previousReport: BugReport?
|) {
| enum class Status {
| UNCONFIRMED, CONFIRMED, FIXED, NOTABUG
@@ -205,7 +206,8 @@ class ContentForAnnotationsTest : BaseAbstractTest() {
| ref = Reference(value = 2u),
| reportedBy = [Reference(value = 2UL), Reference(value = 4L),
| ReferenceReal(value = 4.9), ReferenceReal(value = 2f)],
- | showStopper = true
+ | showStopper = true,
+ | previousReport = null
|)
|val ltint: Int = 5
""".trimIndent(), testConfiguration
@@ -233,6 +235,8 @@ class ContentForAnnotationsTest : BaseAbstractTest() {
expectedAnnotationValue("ReferenceReal", FloatValue(2f))
))
assertEquals(reportedByParam, annotationParams["reportedBy"])
+ assertEquals(BooleanValue(true), annotationParams["showStopper"])
+ assertEquals(NullValue, annotationParams["previousReport"])
}
pagesTransformationStage = { module ->
@@ -246,7 +250,8 @@ class ContentForAnnotationsTest : BaseAbstractTest() {
"status",
"ref",
"reportedBy",
- "showStopper"
+ "showStopper",
+ "previousReport"
)
), "", "", emptySet(), "val", "ltint", "Int", "5"
)