Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
fd445e8c
Commit
fd445e8c
authored
Nov 17, 2015
by
Peter van 't Hof
Browse files
Added unit tests
parent
52f5fba3
Changes
2
Hide whitespace changes
Inline
Side-by-side
public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/ToolCommandFunction.scala
View file @
fd445e8c
...
...
@@ -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
()
}
}
public/biopet-core/src/test/scala/nl/lumc/sasc/biopet/core/ToolCommandTest.scala
0 → 100644
View file @
fd445e8c
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment