From 4c8c2230a4de236cc1297d65660f38d71256d4d1 Mon Sep 17 00:00:00 2001 From: Vfrolov Date: Tue, 12 Jul 2022 16:04:36 +0300 Subject: [PATCH] Migrate diktat smoke tests to SAVE-cli mechanism ### What's done: * migrated diktat smoke tests to SAVE-cli mechanism Closes #1383 --- .../org/cqfn/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt | 2 +- .../kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSmokeTest.kt | 4 ++-- .../org/cqfn/diktat/ruleset/smoke/DiktatSmokeTestBase.kt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt index 470bea8d54..49390ebd26 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt @@ -18,8 +18,8 @@ import kotlin.io.path.pathString class DiktatSaveSmokeTest : DiktatSmokeTestBase() { override fun fixAndCompare( config: String, + expected: String, test: String, - expected: String ) { saveSmokeTest(config, test) } diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSmokeTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSmokeTest.kt index a5ac0566a6..607a96f8ea 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSmokeTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSmokeTest.kt @@ -29,10 +29,10 @@ import java.io.File class DiktatSmokeTest : DiktatSmokeTestBase() { override fun fixAndCompare( config: String, + expected: String, test: String, - expected: String ) { - fixAndCompareSmokeTest(test, expected) + fixAndCompareSmokeTest(expected, test) } @Test diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSmokeTestBase.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSmokeTestBase.kt index cee94847b0..d9addd10a4 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSmokeTestBase.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSmokeTestBase.kt @@ -221,8 +221,8 @@ abstract class DiktatSmokeTestBase : FixTestBase("test/smoke/src/main/kotlin", abstract fun fixAndCompare( config: String, + expected: String, test: String, - expected: String ) companion object {