From 70225da122dba759b0269f120a4f0662db07bca1 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Wed, 28 Dec 2016 15:52:11 +0100 Subject: [PATCH] fix test data --- .../testSrc/ApplicationStoreTest.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/platform/configuration-store-impl/testSrc/ApplicationStoreTest.kt b/platform/configuration-store-impl/testSrc/ApplicationStoreTest.kt index 3d96c2904891..7db25196689d 100644 --- a/platform/configuration-store-impl/testSrc/ApplicationStoreTest.kt +++ b/platform/configuration-store-impl/testSrc/ApplicationStoreTest.kt @@ -96,7 +96,7 @@ internal class ApplicationStoreTest { componentStore.initComponent(component, false) assertThat(component.foo).isEqualTo("newValue") - assertThat(Paths.get(componentStore.storageManager.expandMacros(fileSpec))).isRegularFile + assertThat(Paths.get(componentStore.storageManager.expandMacros(fileSpec))).doesNotExist() } @Test fun `remove deprecated storage on write`() { @@ -323,9 +323,7 @@ internal class ApplicationStoreTest { private fun writeConfig(fileName: String, @Language("XML") data: String) = testAppConfig.writeChild(fileName, data) private class MyStreamProvider : StreamProvider { - override fun processChildren(path: String, roamingType: RoamingType, filter: (String) -> Boolean, processor: (String, InputStream, Boolean) -> Boolean): Boolean { - return true - } + override fun processChildren(path: String, roamingType: RoamingType, filter: (String) -> Boolean, processor: (String, InputStream, Boolean) -> Boolean) = true val data: MutableMap> = THashMap()