aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/renderers/html
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/src/test/kotlin/renderers/html')
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/BasicTest.kt2
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/BreadcrumbsTest.kt2
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/CoverPageTest.kt4
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/CustomFooterTest.kt4
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt2
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/FooterMessageTest.kt4
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/FormattingUtilsTest.kt4
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/GroupWrappingTest.kt2
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/ListStylesTest.kt2
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/NavigationIconTest.kt2
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/NavigationTest.kt5
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/SearchbarDataInstallerTest.kt8
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/SourceSetDependentHintTest.kt2
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/SourceSetFilterTest.kt4
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/TabbedContentTest.kt4
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/TextStylesTest.kt2
16 files changed, 27 insertions, 26 deletions
diff --git a/plugins/base/src/test/kotlin/renderers/html/BasicTest.kt b/plugins/base/src/test/kotlin/renderers/html/BasicTest.kt
index fbcdf70e..8817ea27 100644
--- a/plugins/base/src/test/kotlin/renderers/html/BasicTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/BasicTest.kt
@@ -2,10 +2,10 @@ package renderers.html
import org.jetbrains.dokka.base.renderers.html.HtmlRenderer
import org.jetbrains.dokka.links.DRI
-import org.junit.jupiter.api.Test
import renderers.testPage
import utils.Span
import utils.match
+import kotlin.test.Test
class BasicTest : HtmlRenderingOnlyTestBase() {
@Test
diff --git a/plugins/base/src/test/kotlin/renderers/html/BreadcrumbsTest.kt b/plugins/base/src/test/kotlin/renderers/html/BreadcrumbsTest.kt
index bebc41dc..1acafacc 100644
--- a/plugins/base/src/test/kotlin/renderers/html/BreadcrumbsTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/BreadcrumbsTest.kt
@@ -2,9 +2,9 @@ package renderers.html
import org.jetbrains.dokka.base.testApi.testRunner.BaseAbstractTest
import org.jsoup.nodes.Element
-import org.junit.jupiter.api.Test
import signatures.renderedContent
import utils.*
+import kotlin.test.Test
class BreadcrumbsTest : BaseAbstractTest() {
diff --git a/plugins/base/src/test/kotlin/renderers/html/CoverPageTest.kt b/plugins/base/src/test/kotlin/renderers/html/CoverPageTest.kt
index 522f9037..ef41a00a 100644
--- a/plugins/base/src/test/kotlin/renderers/html/CoverPageTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/CoverPageTest.kt
@@ -1,9 +1,9 @@
package renderers.html
import org.jetbrains.dokka.base.testApi.testRunner.BaseAbstractTest
-import org.junit.jupiter.api.Test
import signatures.renderedContent
import utils.TestOutputWriterPlugin
+import kotlin.test.Test
import kotlin.test.assertEquals
class CoverPageTest : BaseAbstractTest() {
@@ -44,4 +44,4 @@ class CoverPageTest : BaseAbstractTest() {
}
}
}
-} \ No newline at end of file
+}
diff --git a/plugins/base/src/test/kotlin/renderers/html/CustomFooterTest.kt b/plugins/base/src/test/kotlin/renderers/html/CustomFooterTest.kt
index c1ef6121..0b53d1c2 100644
--- a/plugins/base/src/test/kotlin/renderers/html/CustomFooterTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/CustomFooterTest.kt
@@ -9,12 +9,12 @@ import org.jetbrains.dokka.base.renderers.html.HtmlRenderer
import org.jetbrains.dokka.base.templating.toJsonString
import org.jsoup.Jsoup
import org.jsoup.nodes.Element
-import org.junit.jupiter.api.Test
import renderers.testPage
import utils.A
import utils.Div
import utils.Span
import utils.match
+import kotlin.test.Test
class CustomFooterTest : HtmlRenderingOnlyTestBase() {
@Test
@@ -41,4 +41,4 @@ class CustomFooterTest : HtmlRenderingOnlyTestBase() {
override val renderedContent: Element
get() = files.contents.getValue("test-page.html").let { Jsoup.parse(it) }.select(".footer").single()
-} \ No newline at end of file
+}
diff --git a/plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt b/plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt
index f9dd92da..1542c6c2 100644
--- a/plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt
@@ -3,10 +3,10 @@ package renderers.html
import org.jetbrains.dokka.base.renderers.html.HtmlRenderer
import org.jetbrains.dokka.links.DRI
import org.jetbrains.dokka.pages.ContentDivergentGroup
-import org.junit.jupiter.api.Test
import renderers.testPage
import utils.Br
import utils.match
+import kotlin.test.Test
import kotlin.test.assertEquals
class DivergentTest : HtmlRenderingOnlyTestBase() {
diff --git a/plugins/base/src/test/kotlin/renderers/html/FooterMessageTest.kt b/plugins/base/src/test/kotlin/renderers/html/FooterMessageTest.kt
index d91c402e..82584121 100644
--- a/plugins/base/src/test/kotlin/renderers/html/FooterMessageTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/FooterMessageTest.kt
@@ -4,11 +4,11 @@ import org.jetbrains.dokka.base.DokkaBaseConfiguration.Companion.defaultFooterMe
import org.jetbrains.dokka.base.renderers.html.HtmlRenderer
import org.jsoup.Jsoup
import org.jsoup.nodes.Element
-import org.junit.jupiter.api.Test
import renderers.testPage
import utils.A
import utils.Span
import utils.match
+import kotlin.test.Test
class FooterMessageTest : HtmlRenderingOnlyTestBase() {
@Test
@@ -24,4 +24,4 @@ class FooterMessageTest : HtmlRenderingOnlyTestBase() {
override val renderedContent: Element
get() = files.contents.getValue("test-page.html").let { Jsoup.parse(it) }.select(".footer").single()
-} \ No newline at end of file
+}
diff --git a/plugins/base/src/test/kotlin/renderers/html/FormattingUtilsTest.kt b/plugins/base/src/test/kotlin/renderers/html/FormattingUtilsTest.kt
index 3e5ceb75..9957d3f2 100644
--- a/plugins/base/src/test/kotlin/renderers/html/FormattingUtilsTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/FormattingUtilsTest.kt
@@ -4,7 +4,7 @@ import kotlinx.html.body
import kotlinx.html.html
import kotlinx.html.stream.createHTML
import org.jetbrains.dokka.base.renderers.html.buildBreakableText
-import org.junit.jupiter.api.Test
+import kotlin.test.Test
import kotlin.test.assertEquals
class FormattingUtilsTest {
@@ -79,4 +79,4 @@ class FormattingUtilsTest {
assertEquals(expectedHtml.trim(), html.trim())
}
-} \ No newline at end of file
+}
diff --git a/plugins/base/src/test/kotlin/renderers/html/GroupWrappingTest.kt b/plugins/base/src/test/kotlin/renderers/html/GroupWrappingTest.kt
index f69cf80f..e1faa460 100644
--- a/plugins/base/src/test/kotlin/renderers/html/GroupWrappingTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/GroupWrappingTest.kt
@@ -2,11 +2,11 @@ package renderers.html
import org.jetbrains.dokka.base.renderers.html.HtmlRenderer
import org.jetbrains.dokka.pages.TextStyle
-import org.junit.jupiter.api.Test
import renderers.testPage
import utils.Div
import utils.P
import utils.match
+import kotlin.test.Test
class GroupWrappingTest : HtmlRenderingOnlyTestBase() {
diff --git a/plugins/base/src/test/kotlin/renderers/html/ListStylesTest.kt b/plugins/base/src/test/kotlin/renderers/html/ListStylesTest.kt
index 8b11dad1..ba063844 100644
--- a/plugins/base/src/test/kotlin/renderers/html/ListStylesTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/ListStylesTest.kt
@@ -2,12 +2,12 @@ package renderers.html
import org.jetbrains.dokka.base.renderers.html.HtmlRenderer
import org.jetbrains.dokka.pages.ListStyle
-import org.junit.jupiter.api.Test
import renderers.testPage
import utils.Dd
import utils.Dl
import utils.Dt
import utils.match
+import kotlin.test.Test
class ListStylesTest : HtmlRenderingOnlyTestBase() {
diff --git a/plugins/base/src/test/kotlin/renderers/html/NavigationIconTest.kt b/plugins/base/src/test/kotlin/renderers/html/NavigationIconTest.kt
index fb2c53cd..cbdc28d8 100644
--- a/plugins/base/src/test/kotlin/renderers/html/NavigationIconTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/NavigationIconTest.kt
@@ -1,11 +1,11 @@
package renderers.html
import org.jetbrains.dokka.base.testApi.testRunner.BaseAbstractTest
-import org.junit.jupiter.api.Test
import utils.TestOutputWriterPlugin
import utils.UsingJDK
import utils.navigationHtml
import utils.selectNavigationGrid
+import kotlin.test.Test
import kotlin.test.assertEquals
class NavigationIconTest : BaseAbstractTest() {
diff --git a/plugins/base/src/test/kotlin/renderers/html/NavigationTest.kt b/plugins/base/src/test/kotlin/renderers/html/NavigationTest.kt
index 75993e49..7f199ddd 100644
--- a/plugins/base/src/test/kotlin/renderers/html/NavigationTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/NavigationTest.kt
@@ -3,10 +3,11 @@ package renderers.html
import org.jetbrains.dokka.base.renderers.html.NavigationNodeIcon
import org.jetbrains.dokka.base.testApi.testRunner.BaseAbstractTest
import org.jsoup.nodes.Element
-import org.junit.jupiter.api.Test
import utils.TestOutputWriterPlugin
import utils.navigationHtml
+import kotlin.test.Test
import kotlin.test.assertEquals
+import kotlin.test.assertNotNull
import kotlin.test.assertNull
class NavigationTest : BaseAbstractTest() {
@@ -389,7 +390,7 @@ class NavigationTest : BaseAbstractTest() {
assertEquals(id, this.id())
val link = this.selectFirst("a")
- checkNotNull(link)
+ assertNotNull(link)
assertEquals(text, link.text())
assertEquals(address, link.attr("href"))
if (icon != null) {
diff --git a/plugins/base/src/test/kotlin/renderers/html/SearchbarDataInstallerTest.kt b/plugins/base/src/test/kotlin/renderers/html/SearchbarDataInstallerTest.kt
index 33f86e9f..c19ad55b 100644
--- a/plugins/base/src/test/kotlin/renderers/html/SearchbarDataInstallerTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/SearchbarDataInstallerTest.kt
@@ -1,10 +1,10 @@
package renderers.html
import org.jetbrains.dokka.base.testApi.testRunner.BaseAbstractTest
-import org.junit.Test
-import org.junit.jupiter.api.Assertions
import utils.TestOutputWriterPlugin
import utils.pagesJson
+import kotlin.test.Test
+import kotlin.test.assertEquals
class SearchbarDataInstallerTest: BaseAbstractTest() {
@@ -36,11 +36,11 @@ class SearchbarDataInstallerTest: BaseAbstractTest() {
renderingStage = { _, _ ->
val searchRecords = writerPlugin.writer.pagesJson()
- Assertions.assertEquals(
+ assertEquals(
"Test",
searchRecords.find { record -> record.name == "class Test" }?.description ?: ""
)
}
}
}
-} \ No newline at end of file
+}
diff --git a/plugins/base/src/test/kotlin/renderers/html/SourceSetDependentHintTest.kt b/plugins/base/src/test/kotlin/renderers/html/SourceSetDependentHintTest.kt
index 633a59a7..47874a4c 100644
--- a/plugins/base/src/test/kotlin/renderers/html/SourceSetDependentHintTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/SourceSetDependentHintTest.kt
@@ -3,12 +3,12 @@ package renderers.html
import org.jetbrains.dokka.Platform
import org.jetbrains.dokka.base.renderers.html.HtmlRenderer
import org.jetbrains.dokka.pages.TextStyle
-import org.junit.jupiter.api.Test
import renderers.testPage
import testApi.testRunner.defaultSourceSet
import utils.Div
import utils.match
import java.io.File
+import kotlin.test.Test
class SourceSetDependentHintTest : HtmlRenderingOnlyTestBase() {
diff --git a/plugins/base/src/test/kotlin/renderers/html/SourceSetFilterTest.kt b/plugins/base/src/test/kotlin/renderers/html/SourceSetFilterTest.kt
index e6155535..75ee7f4b 100644
--- a/plugins/base/src/test/kotlin/renderers/html/SourceSetFilterTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/SourceSetFilterTest.kt
@@ -1,10 +1,10 @@
package renderers.html
import org.jetbrains.dokka.base.testApi.testRunner.BaseAbstractTest
-import org.junit.jupiter.api.Assertions.assertEquals
-import org.junit.jupiter.api.Test
import signatures.renderedContent
import utils.TestOutputWriterPlugin
+import kotlin.test.Test
+import kotlin.test.assertEquals
class SourceSetFilterTest : BaseAbstractTest() {
diff --git a/plugins/base/src/test/kotlin/renderers/html/TabbedContentTest.kt b/plugins/base/src/test/kotlin/renderers/html/TabbedContentTest.kt
index 7c42c22b..a2e2617a 100644
--- a/plugins/base/src/test/kotlin/renderers/html/TabbedContentTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/TabbedContentTest.kt
@@ -2,9 +2,9 @@ package renderers.html
import org.jetbrains.dokka.base.testApi.testRunner.BaseAbstractTest
import org.jsoup.nodes.Element
-import org.junit.jupiter.api.Test
import signatures.renderedContent
import utils.TestOutputWriterPlugin
+import kotlin.test.Test
import kotlin.test.assertEquals
class TabbedContentTest : BaseAbstractTest() {
@@ -178,4 +178,4 @@ class TabbedContentTest : BaseAbstractTest() {
}
}
}
-} \ No newline at end of file
+}
diff --git a/plugins/base/src/test/kotlin/renderers/html/TextStylesTest.kt b/plugins/base/src/test/kotlin/renderers/html/TextStylesTest.kt
index 507f1779..07415efe 100644
--- a/plugins/base/src/test/kotlin/renderers/html/TextStylesTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/TextStylesTest.kt
@@ -5,9 +5,9 @@ import org.jetbrains.dokka.pages.TextStyle
import org.jetbrains.dokka.pages.TokenStyle
import org.jsoup.Jsoup
import org.jsoup.nodes.Element
-import org.junit.jupiter.api.Test
import renderers.testPage
import utils.*
+import kotlin.test.Test
import kotlin.test.assertEquals
class TextStylesTest : HtmlRenderingOnlyTestBase() {