diff options
author | aleksZubakov <aleks.zubakov@gmail.com> | 2018-07-12 20:23:02 +0300 |
---|---|---|
committer | aleksZubakov <aleks.zubakov@gmail.com> | 2018-07-12 20:23:02 +0300 |
commit | 742be4ef7c024a5ea6023fb684cd24d1898f37e4 (patch) | |
tree | 34fc44ef7ee5afdb7a153367d80872f74ace4937 /core/src/test/kotlin/model/JVMClassTest.kt | |
parent | b4fcc57ab7f335459131ce105924eeaa5fa77375 (diff) | |
download | dokka-742be4ef7c024a5ea6023fb684cd24d1898f37e4.tar.gz dokka-742be4ef7c024a5ea6023fb684cd24d1898f37e4.tar.bz2 dokka-742be4ef7c024a5ea6023fb684cd24d1898f37e4.zip |
Test refactoring, add common platform tests
Diffstat (limited to 'core/src/test/kotlin/model/JVMClassTest.kt')
-rw-r--r-- | core/src/test/kotlin/model/JVMClassTest.kt | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/core/src/test/kotlin/model/JVMClassTest.kt b/core/src/test/kotlin/model/JVMClassTest.kt deleted file mode 100644 index 22e23722..00000000 --- a/core/src/test/kotlin/model/JVMClassTest.kt +++ /dev/null @@ -1,55 +0,0 @@ -package org.jetbrains.dokka.tests.model - -import org.jetbrains.dokka.Content -import org.jetbrains.dokka.NodeKind -import org.jetbrains.dokka.Platform -import org.jetbrains.dokka.tests.BaseClassTest -import org.jetbrains.dokka.tests.ModelConfig -import org.jetbrains.dokka.tests.checkSourceExistsAndVerifyModel -import org.jetbrains.dokka.tests.verifyPackageMember -import org.junit.Assert -import org.junit.Test - -class JVMClassTest: BaseClassTest(Platform.jvm) { - @Test - fun annotatedClass() { - verifyPackageMember("testdata/classes/annotatedClass.kt", ModelConfig( - analysisPlatform = analysisPlatform, - withKotlinRuntime = true - ) - ) { cls -> - Assert.assertEquals(1, cls.annotations.count()) - with(cls.annotations[0]) { - Assert.assertEquals("Strictfp", name) - Assert.assertEquals(Content.Empty, content) - Assert.assertEquals(NodeKind.Annotation, kind) - } - } - } - - - @Test fun javaAnnotationClass() { - checkSourceExistsAndVerifyModel( - "testdata/classes/javaAnnotationClass.kt", - modelConfig = ModelConfig(analysisPlatform = analysisPlatform, withJdk = true) - ) { model -> - with(model.members.single().members.single()) { - Assert.assertEquals(1, annotations.count()) - with(annotations[0]) { - Assert.assertEquals("Retention", name) - Assert.assertEquals(Content.Empty, content) - Assert.assertEquals(NodeKind.Annotation, kind) - with(details[0]) { - Assert.assertEquals(NodeKind.Parameter, kind) - Assert.assertEquals(1, details.count()) - with(details[0]) { - Assert.assertEquals(NodeKind.Value, kind) - Assert.assertEquals("RetentionPolicy.SOURCE", name) - } - } - } - } - } - } - -}
\ No newline at end of file |