From 9726bba30f31585503d171df87c0b5ba8c854089 Mon Sep 17 00:00:00 2001 From: Vfrolov Date: Fri, 3 Sep 2021 17:26:47 +0300 Subject: [PATCH] Change test storage from List to class in Fix plugin What's done: * Change test storage from List to class in plugin Closes #221 --- .../kotlin/org/cqfn/save/plugins/fix/FixPluginTest.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/save-plugins/fix-plugin/src/commonNonJsTest/kotlin/org/cqfn/save/plugins/fix/FixPluginTest.kt b/save-plugins/fix-plugin/src/commonNonJsTest/kotlin/org/cqfn/save/plugins/fix/FixPluginTest.kt index 5d4614755..02bf22e6c 100644 --- a/save-plugins/fix-plugin/src/commonNonJsTest/kotlin/org/cqfn/save/plugins/fix/FixPluginTest.kt +++ b/save-plugins/fix-plugin/src/commonNonJsTest/kotlin/org/cqfn/save/plugins/fix/FixPluginTest.kt @@ -39,8 +39,8 @@ class FixPluginTest { val pairs = discoverFilePairs() assertEquals(1, pairs.size) - assertEquals("Test1Expected.java", pairs.single().first.name) - assertEquals("Test1Test.java", pairs.single().second.name) + assertEquals("Test1Test.java", pairs.single().first.name) + assertEquals("Test1Expected.java", pairs.single().second.name) } @Test @@ -59,8 +59,8 @@ class FixPluginTest { val pairs = discoverFilePairs() assertEquals(1, pairs.size) - assertEquals("Test2Expected.java", pairs.single().first.name) - assertEquals("Test2Test.java", pairs.single().second.name) + assertEquals("Test2Test.java", pairs.single().first.name) + assertEquals("Test2Expected.java", pairs.single().second.name) } @Test @@ -89,7 +89,7 @@ class FixPluginTest { ).execute() assertEquals(1, results.count(), "Size of results should equal number of pairs") - assertEquals(TestResult(listOf(expectedFile, testFile), Pass(null), + assertEquals(TestResult(listOf(testFile, expectedFile), Pass(null), DebugInfo(results.single().debugInfo?.stdout, results.single().debugInfo?.stderr, null)), results.single()) val tmpDir = (FileSystem.SYSTEM_TEMPORARY_DIRECTORY / FixPlugin::class.simpleName!!) assertTrue("Files should be identical") {