diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-21 18:26:10 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-21 18:26:10 +0200 |
commit | b8f2435e2db50c2053a9d880ab9573cb0bc2630e (patch) | |
tree | 55274c5b5e67191e32983559ffb8ea15c0c4df86 /test/src/model/ClassTest.kt | |
parent | 8827d30048b9c50f47e62f69baf774363fdebc5d (diff) | |
download | dokka-b8f2435e2db50c2053a9d880ab9573cb0bc2630e.tar.gz dokka-b8f2435e2db50c2053a9d880ab9573cb0bc2630e.tar.bz2 dokka-b8f2435e2db50c2053a9d880ab9573cb0bc2630e.zip |
M15 code cleanup
Diffstat (limited to 'test/src/model/ClassTest.kt')
-rw-r--r-- | test/src/model/ClassTest.kt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/src/model/ClassTest.kt b/test/src/model/ClassTest.kt index 24503273..0e2323c1 100644 --- a/test/src/model/ClassTest.kt +++ b/test/src/model/ClassTest.kt @@ -222,11 +222,11 @@ public class ClassTest { verifyModel("test/data/classes/notOpenClass.kt") { model -> with(model.members.single().members.first { it.name == "D"}.members.first { it.name == "f" }) { val modifiers = details(DocumentationNode.Kind.Modifier) - assertEquals(2, modifiers.size()) + assertEquals(2, modifiers.size) assertEquals("final", modifiers[1].name) val overrideReferences = references(DocumentationReference.Kind.Override) - assertEquals(1, overrideReferences.size()) + assertEquals(1, overrideReferences.size) } } } @@ -235,11 +235,11 @@ public class ClassTest { verifyModel("test/data/classes/indirectOverride.kt") { model -> with(model.members.single().members.first { it.name == "E"}.members.first { it.name == "foo" }) { val modifiers = details(DocumentationNode.Kind.Modifier) - assertEquals(2, modifiers.size()) + assertEquals(2, modifiers.size) assertEquals("final", modifiers[1].name) val overrideReferences = references(DocumentationReference.Kind.Override) - assertEquals(1, overrideReferences.size()) + assertEquals(1, overrideReferences.size) } } } @@ -248,7 +248,7 @@ public class ClassTest { verifyPackageMember("test/data/classes/innerClass.kt") { cls -> val innerClass = cls.members.single { it.name == "D" } val modifiers = innerClass.details(DocumentationNode.Kind.Modifier) - assertEquals(3, modifiers.size()) + assertEquals(3, modifiers.size) assertEquals("inner", modifiers[2].name) } } @@ -258,15 +258,15 @@ public class ClassTest { val pkg = model.members.single() val cls = pkg.members.single { it.name == "Foo" } val extensions = cls.extensions.filter { it.kind == DocumentationNode.Kind.CompanionObjectProperty } - assertEquals(1, extensions.size()) + assertEquals(1, extensions.size) } } @Test fun secondaryConstructor() { verifyPackageMember("test/data/classes/secondaryConstructor.kt") { cls -> val constructors = cls.members(DocumentationNode.Kind.Constructor) - assertEquals(2, constructors.size()) - with (constructors.first { it.details(DocumentationNode.Kind.Parameter).size()== 1}) { + assertEquals(2, constructors.size) + with (constructors.first { it.details(DocumentationNode.Kind.Parameter).size == 1}) { assertEquals("<init>", name) assertEquals("This is a secondary constructor.", summary.toTestString()) } |