From dd5e6be9bc3c933d430ed53fba2f0c73b10d5953 Mon Sep 17 00:00:00 2001 From: Vfrolov Date: Tue, 12 Jul 2022 15:02:07 +0300 Subject: [PATCH] Migrate diktat smoke tests to SAVE-cli mechanism ### What's done: * migrated diktat smoke tests to SAVE-cli mechanism Closes #1383 --- .../kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt | 2 +- .../kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSmokeTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 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 04798a5212..470bea8d54 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 @@ -29,7 +29,7 @@ class DiktatSaveSmokeTest : DiktatSmokeTestBase() { * @param configFilePath path of diktat-analysis file */ @Suppress("TOO_LONG_FUNCTION") - protected fun saveSmokeTest( + private fun saveSmokeTest( configFilePath: String, testPath: String ) { 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 82dcf767fa..a5ac0566a6 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 @@ -110,7 +110,7 @@ class DiktatSmokeTest : DiktatSmokeTestBase() { * @param expectedPath path to file with expected result, relative to [resourceFilePath] * @param testPath path to file with code that will be transformed by formatter, relative to [resourceFilePath] */ - protected fun fixAndCompareSmokeTest(expectedPath: String, testPath: String) { + private fun fixAndCompareSmokeTest(expectedPath: String, testPath: String) { Assertions.assertTrue( testComparatorUnit .compareFilesFromResources(expectedPath, testPath, true)