diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-09 18:54:06 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-09 18:54:06 +0100 |
commit | 7fbff24a81a7bcc453e1c4e30acdcf7b38c68265 (patch) | |
tree | 4cea4817061c5492f2fd3552649a1768f186255f /test/src | |
parent | a03a2cc3df9afe714e2a490d86a9110faaecfa24 (diff) | |
download | dokka-7fbff24a81a7bcc453e1c4e30acdcf7b38c68265.tar.gz dokka-7fbff24a81a7bcc453e1c4e30acdcf7b38c68265.tar.bz2 dokka-7fbff24a81a7bcc453e1c4e30acdcf7b38c68265.zip |
use JUnit for compares; avoid generating trailing whitespace in markdown
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/TestAPI.kt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/src/TestAPI.kt b/test/src/TestAPI.kt index a88835cd..e559e337 100644 --- a/test/src/TestAPI.kt +++ b/test/src/TestAPI.kt @@ -4,10 +4,9 @@ import org.jetbrains.jet.cli.common.messages.* import com.intellij.openapi.util.* import kotlin.test.fail import org.jetbrains.dokka.* -import org.jetbrains.jet.lang.descriptors.DeclarationDescriptor import java.io.File -import kotlin.test.assertEquals import com.intellij.openapi.application.PathManager +import org.junit.Assert public fun verifyModel(vararg files: String, verifier: (DocumentationModule) -> Unit) { val messageCollector = object : MessageCollector { @@ -55,7 +54,7 @@ public fun verifyOutput(path: String, outputExtension: String, outputGenerator: val output = StringBuilder() outputGenerator(it, output) val expectedOutput = File(path.replace(".kt", outputExtension)).readText() - assertEquals(expectedOutput, output.toString()) + Assert.assertEquals(expectedOutput, output.toString()) } } |