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

Added test

parent 68f99a4f
......@@ -45,6 +45,18 @@
\ No newline at end of file
package nl.lumc.sasc.biopet.pipelines.bamtobigwig
import java.nio.file.Paths
import org.scalatest.Matchers
import org.scalatest.testng.TestNGSuite
import org.testng.annotations.Test
* Created by pjvanthof on 09/05/16.
class BamToChromSizesTest extends TestNGSuite with Matchers {
private def resourcePath(p: String): String = {
def testChromSizes: Unit = {
val bamFile = new File(resourcePath("/empty.bam"))
val bamToChromSizes = new BamToChromSizes(null)
bamToChromSizes.bamFile = bamFile
bamToChromSizes.chromSizesFile = File.createTempFile("chrom.", ".sizes")
Source.fromFile(bamToChromSizes.chromSizesFile).getLines().toList shouldBe List("chrQ\t10000", "chrR\t10000")
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