From 7723826054f0bc87b1bbf8c0b07127d86aa99363 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Sat, 20 Jan 2018 17:26:00 +0300 Subject: Support constants from Java in KK mode --- core/src/test/kotlin/format/JavaLayoutHtmlFormatTest.kt | 5 +++++ core/src/test/kotlin/format/JavaLayoutHtmlFormatTestCase.kt | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'core/src/test/kotlin') diff --git a/core/src/test/kotlin/format/JavaLayoutHtmlFormatTest.kt b/core/src/test/kotlin/format/JavaLayoutHtmlFormatTest.kt index 4557ce8ea..160b3cb43 100644 --- a/core/src/test/kotlin/format/JavaLayoutHtmlFormatTest.kt +++ b/core/src/test/kotlin/format/JavaLayoutHtmlFormatTest.kt @@ -50,4 +50,9 @@ class JavaLayoutHtmlFormatTest : JavaLayoutHtmlFormatTestCase() { model.members.single().members(NodeKind.Class) } } + + @Test + fun constJava() { + verifyNode("ConstJava.java", noStdlibLink = true) + } } \ No newline at end of file diff --git a/core/src/test/kotlin/format/JavaLayoutHtmlFormatTestCase.kt b/core/src/test/kotlin/format/JavaLayoutHtmlFormatTestCase.kt index 656829904..50af8f2f7 100644 --- a/core/src/test/kotlin/format/JavaLayoutHtmlFormatTestCase.kt +++ b/core/src/test/kotlin/format/JavaLayoutHtmlFormatTestCase.kt @@ -93,8 +93,8 @@ abstract class JavaLayoutHtmlFormatTestCase { } } - protected fun verifyNode(fileName: String) { - verifyNode(fileName) { model -> listOf(model.members.single().members.single()) } + protected fun verifyNode(fileName: String, noStdlibLink: Boolean = false) { + verifyNode(fileName, noStdlibLink) { model -> listOf(model.members.single().members.single()) } } protected fun verifyPackageNode(fileName: String, noStdlibLink: Boolean = false) { -- cgit v1.2.3