summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Chashnikov <Nikolay.Chashnikov@jetbrains.com>2020-04-29 11:22:32 +0300
committerDana Dahlstrom <dahlstrom@google.com>2021-09-28 20:00:00 -0700
commitd231992b58ed7322a0fe3d634581fa4b32e3b03b (patch)
tree0453bc5383f72c4d9d10211004bccab66c559c69
parent27ef09c66d268ff44c347eede882767490334e34 (diff)
downloadidea-d231992b58ed7322a0fe3d634581fa4b32e3b03b.tar.gz
[test framework] rename TempDirectory::newFolder to newDirectory for consistency
We use 'directory' term instead of 'folder' in API. Change-Id: Ib320836ff58f4e9ac91cfed089d10735cfb57018
-rw-r--r--studio-updater/testSrc/com/android/studio/updater/StudioPatchUpdaterIntegrationTest.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/studio-updater/testSrc/com/android/studio/updater/StudioPatchUpdaterIntegrationTest.kt b/studio-updater/testSrc/com/android/studio/updater/StudioPatchUpdaterIntegrationTest.kt
index 8d5f4f3cc8f..061bc259454 100644
--- a/studio-updater/testSrc/com/android/studio/updater/StudioPatchUpdaterIntegrationTest.kt
+++ b/studio-updater/testSrc/com/android/studio/updater/StudioPatchUpdaterIntegrationTest.kt
@@ -63,7 +63,7 @@ class StudioPatchUpdaterIntegrationTest {
V3(mapOf("changed" to "v3_changed"));
internal fun createExampleDir(tempDirectory: TempDirectory): Path {
- val dir = tempDirectory.newFolder().toPath()
+ val dir = tempDirectory.newDirectory().toPath()
for ((path, content) in files) {
val file = dir.resolve(path)
Files.createDirectories(file.parent)
@@ -183,7 +183,7 @@ class StudioPatchUpdaterIntegrationTest {
}
private fun createAnalyticsHome(): Path {
- val path = myTempDirectory.newFolder().toPath()
+ val path = myTempDirectory.newDirectory().toPath()
val json = "{ userId: \"a4d47d92-8d4c-44bb-a8a4-d2483b6e0c16\", hasOptedIn: true }"
Files.write(
path.resolve("").resolve("analytics.settings"),