aboutsummaryrefslogtreecommitdiff
path: root/plugins/all-modules-page/src/test/kotlin/templates/MultiModuleDocumentationTest.kt
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat.beresnev@jetbrains.com>2023-11-10 11:46:54 +0100
committerGitHub <noreply@github.com>2023-11-10 11:46:54 +0100
commit8e5c63d035ef44a269b8c43430f43f5c8eebfb63 (patch)
tree1b915207b2b9f61951ddbf0ff2e687efd053d555 /plugins/all-modules-page/src/test/kotlin/templates/MultiModuleDocumentationTest.kt
parenta44efd4ba0c2e4ab921ff75e0f53fc9335aa79db (diff)
downloaddokka-8e5c63d035ef44a269b8c43430f43f5c8eebfb63.tar.gz
dokka-8e5c63d035ef44a269b8c43430f43f5c8eebfb63.tar.bz2
dokka-8e5c63d035ef44a269b8c43430f43f5c8eebfb63.zip
Restructure the project to utilize included builds (#3174)
* Refactor and simplify artifact publishing * Update Gradle to 8.4 * Refactor and simplify convention plugins and build scripts Fixes #3132 --------- Co-authored-by: Adam <897017+aSemy@users.noreply.github.com> Co-authored-by: Oleg Yukhnevich <whyoleg@gmail.com>
Diffstat (limited to 'plugins/all-modules-page/src/test/kotlin/templates/MultiModuleDocumentationTest.kt')
-rw-r--r--plugins/all-modules-page/src/test/kotlin/templates/MultiModuleDocumentationTest.kt75
1 files changed, 0 insertions, 75 deletions
diff --git a/plugins/all-modules-page/src/test/kotlin/templates/MultiModuleDocumentationTest.kt b/plugins/all-modules-page/src/test/kotlin/templates/MultiModuleDocumentationTest.kt
deleted file mode 100644
index 3d9636ef..00000000
--- a/plugins/all-modules-page/src/test/kotlin/templates/MultiModuleDocumentationTest.kt
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
- */
-
-package org.jetbrains.dokka.allModulesPage.templates
-
-import matchers.content.*
-import org.jetbrains.dokka.allModulesPage.MultiModuleAbstractTest
-import org.jetbrains.dokka.model.dfs
-import org.jetbrains.dokka.pages.ContentKind
-import org.jetbrains.dokka.pages.ContentResolvedLink
-import org.jetbrains.dokka.pages.MultimoduleRootPageNode
-import org.junit.jupiter.api.io.TempDir
-import java.io.File
-import kotlin.test.AfterTest
-import kotlin.test.BeforeTest
-import kotlin.test.Test
-import kotlin.test.assertEquals
-
-class MultiModuleDocumentationTest : MultiModuleAbstractTest() {
-
- @field:TempDir
- lateinit var tempDir: File
-
- val documentationContent = """
- # Sample project
- Sample documentation with [external link](https://www.google.pl)
- """.trimIndent()
-
- @BeforeTest
- fun setup() {
- tempDir.resolve("README.md").writeText(documentationContent)
- }
-
- @AfterTest
- fun teardown(){
- tempDir.resolve("README.md").delete()
- }
-
- @Test
- fun `documentation should be included in all modules page`() {
- val configuration = dokkaConfiguration {
- includes = listOf(tempDir.resolve("README.md"))
- }
-
- testFromData(configuration) {
- allModulesPageCreationStage = { rootPage ->
- (rootPage as? MultimoduleRootPageNode)?.content?.dfs { it.dci.kind == ContentKind.Cover }?.children?.firstOrNull()
- ?.assertNode {
- group {
- group {
- group {
- header(1) {
- +"Sample project"
- }
- group {
- +"Sample documentation with "
- link {
- +"external link"
- check {
- assertEquals(
- "https://www.google.pl",
- (this as ContentResolvedLink).address
- )
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
-}