Skip to content
Snippets Groups Projects
Commit 48a1317f authored by Sören Henning's avatar Sören Henning
Browse files

Merge branch 'master' into generic-resource-support

parents 9a853125 f01baf8f
No related branches found
No related tags found
1 merge request!257Allow Theodolite to deploy arbitrary resources
...@@ -12,7 +12,6 @@ import org.junit.rules.TemporaryFolder ...@@ -12,7 +12,6 @@ import org.junit.rules.TemporaryFolder
import org.junitpioneer.jupiter.ClearEnvironmentVariable import org.junitpioneer.jupiter.ClearEnvironmentVariable
import org.junitpioneer.jupiter.SetEnvironmentVariable import org.junitpioneer.jupiter.SetEnvironmentVariable
const val FOLDER_URL = "Test-Folder" const val FOLDER_URL = "Test-Folder"
@QuarkusTest @QuarkusTest
...@@ -56,11 +55,12 @@ internal class IOHandlerTest { ...@@ -56,11 +55,12 @@ internal class IOHandlerTest {
columns = columns columns = columns
) )
var expected = "Fruit,Color\n" val expected = (listOf(listOf("Fruit", "Color")) + testContent)
testContent.forEach { expected += it[0] + "," + it[1] + "\n" } .map { "${it[0]},${it[1]}" }
.reduce { left, right -> left + System.lineSeparator() + right }
assertEquals( assertEquals(
expected.trim(), expected,
IOHandler().readFileAsString("${folder.absolutePath}/test-file.csv") IOHandler().readFileAsString("${folder.absolutePath}/test-file.csv")
) )
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment