Skip to content
Snippets Groups Projects
Commit b8a26250 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Added test to write config

parent 01d3e5d8
No related branches found
No related tags found
No related merge requests found
package nl.lumc.sasc.biopet.pipelines.generateindexes
import java.io.File
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 {
@Test
def testWriteConfig: Unit = {
val writeConfig = new WriteConfig
writeConfig.config = Map("test" -> "bla")
writeConfig.out = File.createTempFile("config.", ".json")
writeConfig.out.deleteOnExit()
writeConfig.run
ConfigUtils.fileToConfigMap(writeConfig.out) shouldBe Map("test" -> "bla")
}
}
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