Commit b8a26250 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Added test to write config

parent 01d3e5d8
package nl.lumc.sasc.biopet.pipelines.generateindexes
import nl.lumc.sasc.biopet.utils.ConfigUtils
import org.scalatest.Matchers
import org.scalatest.testng.TestNGSuite
import org.testng.annotations.Test
* Created by pjvanthof on 17/05/16.
class WriteConfigTest extends TestNGSuite with Matchers {
def testWriteConfig: Unit = {
val writeConfig = new WriteConfig
writeConfig.config = Map("test" -> "bla")
writeConfig.out = File.createTempFile("config.", ".json")
ConfigUtils.fileToConfigMap(writeConfig.out) shouldBe Map("test" -> "bla")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment