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

Fixed unit test

parent 104ed7fe
......@@ -14,10 +14,10 @@
*/
package nl.lumc.sasc.biopet.tools
import java.io.{File, PrintWriter}
import java.io.{ File, PrintWriter }
import nl.lumc.sasc.biopet.utils.ConfigUtils._
import nl.lumc.sasc.biopet.utils.{ConfigUtils, ToolCommand}
import nl.lumc.sasc.biopet.utils.{ ConfigUtils, ToolCommand }
import scala.collection.mutable
import scala.io.Source
......
......@@ -17,6 +17,7 @@ package nl.lumc.sasc.biopet.tools
import java.io.File
import java.nio.file.Paths
import nl.lumc.sasc.biopet.utils.ConfigUtils
import org.scalatest.Matchers
import org.scalatest.mock.MockitoSugar
import org.scalatest.testng.TestNGSuite
......@@ -73,7 +74,7 @@ class SamplesTsvToConfigTest extends TestNGSuite with MockitoSugar with Matchers
val tsv = new File(resourcePath("/sample.tsv"))
val json = stringFromInputs(List(tsv), Nil)
json should equal(
ConfigUtils.mapToJson(json).spaces2 should equal(
"""|{
| "samples" : {
| "Sample_ID_1" : {
......
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