aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin/model/FunctionTest.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2017-02-23 11:18:44 +0100
committerDmitry Jemerov <yole@jetbrains.com>2017-02-23 12:02:23 +0100
commit1270519a551cd30e452d282247d2d963bc9c25ca (patch)
treea42a39450ac361a25e7e1f901fda1132a428a382 /core/src/test/kotlin/model/FunctionTest.kt
parent7fa258873eab770577879e9721c0864449ba1114 (diff)
downloaddokka-1270519a551cd30e452d282247d2d963bc9c25ca.tar.gz
dokka-1270519a551cd30e452d282247d2d963bc9c25ca.tar.bz2
dokka-1270519a551cd30e452d282247d2d963bc9c25ca.zip
Refactor SinceKotlin support to a more general "platform" mechanism
Diffstat (limited to 'core/src/test/kotlin/model/FunctionTest.kt')
-rw-r--r--core/src/test/kotlin/model/FunctionTest.kt5
1 files changed, 2 insertions, 3 deletions
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)
}
}
}