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
import org.junitpioneer.jupiter.ClearEnvironmentVariable
import org.junitpioneer.jupiter.SetEnvironmentVariable
const val FOLDER_URL = "Test-Folder"
@QuarkusTest
......@@ -56,11 +55,12 @@ internal class IOHandlerTest {
columns = columns
)
var expected = "Fruit,Color\n"
testContent.forEach { expected += it[0] + "," + it[1] + "\n" }
val expected = (listOf(listOf("Fruit", "Color")) + testContent)
.map { "${it[0]},${it[1]}" }
.reduce { left, right -> left + System.lineSeparator() + right }
assertEquals(
expected.trim(),
expected,
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