aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-08-13 18:14:44 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-14 14:16:41 +0200
commite9ae3982e3b1e7b5dfd105a9e0cad9ccd9ee8d41 (patch)
tree859784920a58fe45cd757226e5dfaa636f1da074 /plugins/base/src/test/kotlin
parentdd6bbdb88b0e4aaefde6598fee605714a3a516d8 (diff)
downloaddokka-e9ae3982e3b1e7b5dfd105a9e0cad9ccd9ee8d41.tar.gz
dokka-e9ae3982e3b1e7b5dfd105a9e0cad9ccd9ee8d41.tar.bz2
dokka-e9ae3982e3b1e7b5dfd105a9e0cad9ccd9ee8d41.zip
Refactor loggers to allow for message filtering
Diffstat (limited to 'plugins/base/src/test/kotlin')
-rw-r--r--plugins/base/src/test/kotlin/basic/FailOnWarningTest.kt7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/base/src/test/kotlin/basic/FailOnWarningTest.kt b/plugins/base/src/test/kotlin/basic/FailOnWarningTest.kt
index 0a85ed35..c9ed307a 100644
--- a/plugins/base/src/test/kotlin/basic/FailOnWarningTest.kt
+++ b/plugins/base/src/test/kotlin/basic/FailOnWarningTest.kt
@@ -1,12 +1,12 @@
package basic
import org.jetbrains.dokka.DokkaException
+import org.jetbrains.dokka.testApi.logger.TestLogger
import org.jetbrains.dokka.testApi.testRunner.AbstractCoreTest
import org.jetbrains.dokka.utilities.DokkaConsoleLogger
import org.jetbrains.dokka.utilities.DokkaLogger
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
-import org.jetbrains.dokka.testApi.logger.TestLogger
class FailOnWarningTest : AbstractCoreTest() {
@@ -62,7 +62,6 @@ class FailOnWarningTest : AbstractCoreTest() {
@Test
fun `does not throw if now warning or error was emitted`() {
- logger = TestLogger(ZeroErrorOrWarningCountDokkaLogger())
val configuration = dokkaConfiguration {
failOnWarning = true
@@ -78,7 +77,9 @@ class FailOnWarningTest : AbstractCoreTest() {
"""
|/src/main/kotlin
|package sample
- """.trimIndent(), configuration
+ """.trimIndent(),
+ configuration,
+ loggerForTest = TestLogger(ZeroErrorOrWarningCountDokkaLogger())
) {
/* We expect no Exception */
}