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

Added unit tests

parent 52f5fba3
......@@ -17,9 +17,4 @@ trait ToolCommandFunction extends BiopetJavaCommandLineFunction with Version {
javaMainClass = toolObject.getClass.getName.takeWhile(_ != '$')
super.beforeGraph()
}
override def freezeFieldValues(): Unit = {
javaMainClass = toolObject.getClass.getName.takeWhile(_ != '$')
super.freezeFieldValues()
}
}
package nl.lumc.sasc.biopet.core
import org.scalatest.Matchers
import org.scalatest.testng.TestNGSuite
import org.testng.annotations.Test
import nl.lumc.sasc.biopet.FullVersion
/**
* Created by pjvanthof on 16/11/15.
*/
class ToolCommandTest extends TestNGSuite with Matchers {
@Test
def testToolCommand: Unit = {
val tool = new ToolCommandFunction {
val root = null
val toolObject = ToolCommandTest
}
tool.versionCommand shouldBe empty
tool.versionRegex.toString() shouldBe empty
tool.getVersion shouldBe Some("Biopet " + FullVersion)
tool.beforeGraph
tool.javaMainClass shouldBe ToolCommandTest.getClass.getName.takeWhile(_ != '$')
}
}
object ToolCommandTest {
}
\ No newline at end of file
Markdown is supported
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