aboutsummaryrefslogtreecommitdiff
path: root/plugins/javadoc/src/test
diff options
context:
space:
mode:
authorMarcin Aman <maman@virtuslab.com>2020-09-03 13:39:58 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-09-04 08:55:02 +0200
commitcc3d4872f70cfebaf5d85c72af0030f526671915 (patch)
treeb8f75efddd4cb631b930b0d24efdbdcc4159ee73 /plugins/javadoc/src/test
parent4d8e84396824b8a3d5d6e3e26ea4911fa944e3aa (diff)
downloaddokka-cc3d4872f70cfebaf5d85c72af0030f526671915.tar.gz
dokka-cc3d4872f70cfebaf5d85c72af0030f526671915.tar.bz2
dokka-cc3d4872f70cfebaf5d85c72af0030f526671915.zip
Javadoc version number is always 0.0.1 #1406
Diffstat (limited to 'plugins/javadoc/src/test')
-rw-r--r--plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocModuleTemplateMapTest.kt4
-rw-r--r--plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocPackageTemplateMapTest.kt2
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocModuleTemplateMapTest.kt b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocModuleTemplateMapTest.kt
index 8a999fb3..d192abde 100644
--- a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocModuleTemplateMapTest.kt
+++ b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocModuleTemplateMapTest.kt
@@ -64,9 +64,11 @@ internal class JavadocModuleTemplateMapTest : AbstractJavadocTemplateMapTest() {
/src/com/test/package1/Test1.java
package com.test.package1;
public class Test1 {}
- """
+ """,
+ configuration = config.copy(moduleVersion = "1.2.3-SNAPSHOT")
) {
val moduleTemplateMap = singlePageOfType<JavadocModulePageNode>().templateMap
+ assertEquals("1.2.3-SNAPSHOT", moduleTemplateMap["version"])
val list = assertIsInstance<List<*>>(moduleTemplateMap["list"])
assertEquals(2, list.size, "Expected two entries in 'list'")
assertEquals("com.test.package0", assertIsInstance<RowJavadocListEntry>(list[0]).link.name)
diff --git a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocPackageTemplateMapTest.kt b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocPackageTemplateMapTest.kt
index 9816c11c..356e5772 100644
--- a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocPackageTemplateMapTest.kt
+++ b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocPackageTemplateMapTest.kt
@@ -31,7 +31,7 @@ internal class JavadocPackageTemplateMapTest : AbstractJavadocTemplateMapTest()
val map = singlePageOfType<JavadocPackagePageNode>().templateMap
assertEquals("Class Summary", ((map["lists"] as List<*>).first() as Map<String, *>)["tabTitle"])
assertEquals("Class", ((map["lists"] as List<*>).first() as Map<String, *>)["colTitle"])
- assertEquals("com.test.package0", map["title"])
+ assertEquals("Package com.test.package0", map["title"])
assertEquals("", map["subtitle"])
assertEquals("package", map["kind"])