Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
biopet.biopet
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
biopet.biopet
Commits
cf11d4ac
Commit
cf11d4ac
authored
9 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Output to a file, no output to stdout anymore
parent
07d09eb4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/biopet-framework/src/test/scala/nl/lumc/sasc/biopet/tools/SamplesTsvToJsonTest.scala
+8
-4
8 additions, 4 deletions
...cala/nl/lumc/sasc/biopet/tools/SamplesTsvToJsonTest.scala
with
8 additions
and
4 deletions
public/biopet-framework/src/test/scala/nl/lumc/sasc/biopet/tools/SamplesTsvToJsonTest.scala
+
8
−
4
View file @
cf11d4ac
...
...
@@ -20,28 +20,32 @@ class SamplesTsvToJsonTest extends TestNGSuite with MockitoSugar with Matchers {
@Test
def
testCorrectSampleTsv
=
{
val
tsv
=
resourcePath
(
"/sample.tsv"
)
val
output
=
File
.
createTempFile
(
"testCorrectSampleTsv"
,
".json"
)
noException
should
be
thrownBy
main
(
Array
(
"-i"
,
tsv
))
noException
should
be
thrownBy
main
(
Array
(
"-i"
,
tsv
,
"-o"
,
output
.
toString
))
}
@Test
def
testNoSampleColumn
()
=
{
val
tsv
=
resourcePath
(
"/no_sample.tsv"
)
val
thrown
=
the
[
IllegalStateException
]
thrownBy
main
(
Array
(
"-i"
,
tsv
))
val
output
=
File
.
createTempFile
(
"testNoSampleColumn"
,
".json"
)
val
thrown
=
the
[
IllegalStateException
]
thrownBy
main
(
Array
(
"-i"
,
tsv
,
"-o"
,
output
.
toString
))
thrown
.
getMessage
should
equal
(
"Sample column does not exist in: "
+
tsv
)
}
@Test
def
testNumberInLibs
=
{
val
tsv
=
resourcePath
(
"/number.tsv"
)
val
thrown
=
the
[
IllegalStateException
]
thrownBy
main
(
Array
(
"-i"
,
tsv
))
val
output
=
File
.
createTempFile
(
"testNumberInLibs"
,
".json"
)
val
thrown
=
the
[
IllegalStateException
]
thrownBy
main
(
Array
(
"-i"
,
tsv
,
"-o"
,
output
.
toString
))
thrown
.
getMessage
should
equal
(
"Sample or library may not start with a number"
)
}
@Test
def
testSampleIDs
=
{
val
tsv
=
resourcePath
(
"/same.tsv"
)
val
thrown
=
the
[
IllegalStateException
]
thrownBy
main
(
Array
(
"-i"
,
tsv
))
val
output
=
File
.
createTempFile
(
"testSampleIDs"
,
".json"
)
val
thrown
=
the
[
IllegalStateException
]
thrownBy
main
(
Array
(
"-i"
,
tsv
,
"-o"
,
output
.
toString
))
thrown
.
getMessage
should
equal
(
"Combination of Sample_ID_1 and Lib_ID_1 is found multiple times"
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment