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
5eb775cb
Commit
5eb775cb
authored
May 15, 2016
by
Peter van 't Hof
Browse files
switch to trait
parent
1ac97254
Changes
1
Hide whitespace changes
Inline
Side-by-side
mapping/src/test/scala/nl/lumc/sasc/biopet/pipelines/mapping/MultisampleMappingTest.scala
View file @
5eb775cb
...
...
@@ -14,7 +14,7 @@ import org.testng.annotations.{DataProvider, Test}
/**
* Created by pjvanthof on 15/05/16.
*/
class
MultisampleMappingTest
extends
TestNGSuite
with
Matchers
{
trait
MultisampleMappingTest
Trait
extends
TestNGSuite
with
Matchers
{
def
initPipeline
(
map
:
Map
[
String
,
Any
])
:
MultisampleMapping
=
{
new
MultisampleMapping
()
{
override
def
configNamespace
=
"multisamplemapping"
...
...
@@ -27,13 +27,14 @@ class MultisampleMappingTest extends TestNGSuite with Matchers {
def
mergeStrategies
=
MultisampleMapping
.
MergeStrategy
.
values
def
bamToFastq
=
false
def
correctReadgroups
=
false
def
sample1
=
Array
(
true
,
false
)
def
sample2
=
Array
(
true
,
false
)
@DataProvider
(
name
=
"mappingOptions"
)
def
mappingOptions
=
{
val
bool
=
Array
(
true
,
false
)
for
(
merge
<-
mergeStrategies
.
toArray
;
s
ample2
<-
bool
)
yield
Array
(
merge
,
true
,
sample
2
)
merge
<-
mergeStrategies
.
toArray
;
s
1
<-
sample1
;
s2
<-
sample2
)
yield
Array
(
merge
,
s1
,
s
2
)
}
@Test
(
dataProvider
=
"mappingOptions"
)
...
...
@@ -68,6 +69,10 @@ class MultisampleMappingTest extends TestNGSuite with Matchers {
}
}
class
MultisampleMappingTest
extends
MultisampleMappingTestTrait
{
override
def
sample1
=
Array
(
true
)
}
object
MultisampleMappingTestTrait
{
val
outputDir
=
Files
.
createTempDir
()
outputDir
.
deleteOnExit
()
...
...
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