diff options
author | Marcin Aman <maman@virtuslab.com> | 2020-09-03 13:39:58 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-09-04 08:55:02 +0200 |
commit | cc3d4872f70cfebaf5d85c72af0030f526671915 (patch) | |
tree | b8f75efddd4cb631b930b0d24efdbdcc4159ee73 /plugins/javadoc/src/test | |
parent | 4d8e84396824b8a3d5d6e3e26ea4911fa944e3aa (diff) | |
download | dokka-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')
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"]) |