diff options
Diffstat (limited to 'core/src/test/kotlin/model')
-rw-r--r-- | core/src/test/kotlin/model/ClassTest.kt | 5 | ||||
-rw-r--r-- | core/src/test/kotlin/model/FunctionTest.kt | 5 | ||||
-rw-r--r-- | core/src/test/kotlin/model/PropertyTest.kt | 5 | ||||
-rw-r--r-- | core/src/test/kotlin/model/TypeAliasTest.kt | 3 |
4 files changed, 7 insertions, 11 deletions
diff --git a/core/src/test/kotlin/model/ClassTest.kt b/core/src/test/kotlin/model/ClassTest.kt index b6ac7126..fb225728 100644 --- a/core/src/test/kotlin/model/ClassTest.kt +++ b/core/src/test/kotlin/model/ClassTest.kt @@ -3,10 +3,9 @@ package org.jetbrains.dokka.tests import org.jetbrains.dokka.Content import org.jetbrains.dokka.NodeKind import org.jetbrains.dokka.RefKind -import org.junit.Test import org.junit.Assert.assertEquals import org.junit.Assert.assertTrue -import kotlin.test.assertNotNull +import org.junit.Test class ClassTest { @Test fun emptyClass() { @@ -277,7 +276,7 @@ class ClassTest { @Test fun sinceKotlin() { verifyModel("testdata/classes/sinceKotlin.kt") { model -> with(model.members.single().members.single()) { - assertNotNull(sinceKotlin) + assertEquals(listOf("Kotlin 1.1"), platforms) } } } diff --git a/core/src/test/kotlin/model/FunctionTest.kt b/core/src/test/kotlin/model/FunctionTest.kt index 8cf6b14a..ddd33941 100644 --- a/core/src/test/kotlin/model/FunctionTest.kt +++ b/core/src/test/kotlin/model/FunctionTest.kt @@ -2,10 +2,9 @@ package org.jetbrains.dokka.tests import org.jetbrains.dokka.Content import org.jetbrains.dokka.NodeKind -import org.junit.Test import org.junit.Assert.assertEquals import org.junit.Assert.assertTrue -import kotlin.test.assertNotNull +import org.junit.Test class FunctionTest { @Test fun function() { @@ -229,7 +228,7 @@ Documentation""", content.description.toTestString()) @Test fun sinceKotlin() { verifyModel("testdata/functions/sinceKotlin.kt") { model -> with(model.members.single().members.single()) { - assertNotNull(sinceKotlin) + assertEquals(listOf("Kotlin 1.1"), platforms) } } } diff --git a/core/src/test/kotlin/model/PropertyTest.kt b/core/src/test/kotlin/model/PropertyTest.kt index 1dbb102a..0ee0e0f5 100644 --- a/core/src/test/kotlin/model/PropertyTest.kt +++ b/core/src/test/kotlin/model/PropertyTest.kt @@ -3,10 +3,9 @@ package org.jetbrains.dokka.tests import org.jetbrains.dokka.Content import org.jetbrains.dokka.NodeKind import org.jetbrains.dokka.RefKind -import org.junit.Test import org.junit.Assert.assertEquals import org.junit.Assert.assertTrue -import kotlin.test.assertNotNull +import org.junit.Test class PropertyTest { @Test fun valueProperty() { @@ -105,7 +104,7 @@ class PropertyTest { @Test fun sinceKotlin() { verifyModel("testdata/properties/sinceKotlin.kt") { model -> with(model.members.single().members.single()) { - assertNotNull(sinceKotlin) + assertEquals(listOf("Kotlin 1.1"), platforms) } } } diff --git a/core/src/test/kotlin/model/TypeAliasTest.kt b/core/src/test/kotlin/model/TypeAliasTest.kt index dbb15be4..c653ac83 100644 --- a/core/src/test/kotlin/model/TypeAliasTest.kt +++ b/core/src/test/kotlin/model/TypeAliasTest.kt @@ -4,7 +4,6 @@ import junit.framework.TestCase.assertEquals import org.jetbrains.dokka.Content import org.jetbrains.dokka.NodeKind import org.junit.Test -import kotlin.test.assertNotNull class TypeAliasTest { @Test @@ -126,7 +125,7 @@ class TypeAliasTest { fun sinceKotlin() { verifyModel("testdata/typealias/sinceKotlin.kt") { model -> with(model.members.single().members.single()) { - assertNotNull(sinceKotlin) + assertEquals(listOf("Kotlin 1.1"), platforms) } } } |