Skip to content

Commit

Permalink
Change test storage from List to class in Fix plugin
Browse files Browse the repository at this point in the history
What's done:
* Change test storage from List to class in plugin
Closes #221
  • Loading branch information
Cheshiriks committed Sep 3, 2021
1 parent 323ac80 commit 9726bba
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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") {
Expand Down

0 comments on commit 9726bba

Please sign in to comment.