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
b8a26250
Commit
b8a26250
authored
May 17, 2016
by
Peter van 't Hof
Browse files
Added test to write config
parent
01d3e5d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
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