From 00354ec3cfbfa6f6533de7906371b83ee8c91e53 Mon Sep 17 00:00:00 2001 From: Przemek Bielicki Date: Wed, 6 Mar 2024 15:19:49 +0100 Subject: [PATCH] Format code --- .../tasks/KtfmtCheckTaskIntegrationTest.kt | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/plugin-build/plugin/src/test/java/com/ncorti/ktfmt/gradle/tasks/KtfmtCheckTaskIntegrationTest.kt b/plugin-build/plugin/src/test/java/com/ncorti/ktfmt/gradle/tasks/KtfmtCheckTaskIntegrationTest.kt index fbd78ba..61e694d 100644 --- a/plugin-build/plugin/src/test/java/com/ncorti/ktfmt/gradle/tasks/KtfmtCheckTaskIntegrationTest.kt +++ b/plugin-build/plugin/src/test/java/com/ncorti/ktfmt/gradle/tasks/KtfmtCheckTaskIntegrationTest.kt @@ -1,8 +1,8 @@ package com.ncorti.ktfmt.gradle.tasks import com.google.common.truth.Truth.assertThat -import org.gradle.testkit.runner.BuildResult import java.io.File +import org.gradle.testkit.runner.BuildResult import org.gradle.testkit.runner.GradleRunner import org.gradle.testkit.runner.TaskOutcome.* import org.intellij.lang.annotations.Language @@ -199,11 +199,12 @@ internal class KtfmtCheckTaskIntegrationTest { var result: BuildResult? = null repeat(2) { - result = GradleRunner.create() - .withProjectDir(tempDir) - .withPluginClasspath() - .withArguments("clean", "ktfmtCheckMain", "--build-cache") - .build() + result = + GradleRunner.create() + .withProjectDir(tempDir) + .withPluginClasspath() + .withArguments("clean", "ktfmtCheckMain", "--build-cache") + .build() } assertThat(result!!.task(":ktfmtCheckMain")?.outcome).isEqualTo(FROM_CACHE) @@ -215,11 +216,12 @@ internal class KtfmtCheckTaskIntegrationTest { var result: BuildResult? = null repeat(2) { - result = GradleRunner.create() - .withProjectDir(tempDir) - .withPluginClasspath() - .withArguments("ktfmtCheckMain", "--configuration-cache") - .build() + result = + GradleRunner.create() + .withProjectDir(tempDir) + .withPluginClasspath() + .withArguments("ktfmtCheckMain", "--configuration-cache") + .build() } assertThat(result!!.output).contains("Reusing configuration cache.")