Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mirrors
biopet.biopet
Commits
b8a26250
Commit
b8a26250
authored
May 17, 2016
by
Peter van 't Hof
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test to write config
parent
01d3e5d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
generate-indexes/src/test/scala/nl/lumc/sasc/biopet/pipelines/generateindexes/WriteConfigTest.scala
...sc/biopet/pipelines/generateindexes/WriteConfigTest.scala
+24
-0
No files found.
generate-indexes/src/test/scala/nl/lumc/sasc/biopet/pipelines/generateindexes/WriteConfigTest.scala
0 → 100644
View file @
b8a26250
package
nl.lumc.sasc.biopet.pipelines.generateindexes
import
java.io.File
import
nl.lumc.sasc.biopet.utils.ConfigUtils
import
org.scalatest.Matchers
import
org.scalatest.testng.TestNGSuite
import
org.testng.annotations.Test
/**
* Created by pjvanthof on 17/05/16.
*/
class
WriteConfigTest
extends
TestNGSuite
with
Matchers
{
@Test
def
testWriteConfig
:
Unit
=
{
val
writeConfig
=
new
WriteConfig
writeConfig
.
config
=
Map
(
"test"
->
"bla"
)
writeConfig
.
out
=
File
.
createTempFile
(
"config."
,
".json"
)
writeConfig
.
out
.
deleteOnExit
()
writeConfig
.
run
ConfigUtils
.
fileToConfigMap
(
writeConfig
.
out
)
shouldBe
Map
(
"test"
->
"bla"
)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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