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
b8a26250
Commit
b8a26250
authored
8 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Added test to write config
parent
01d3e5d8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
generate-indexes/src/test/scala/nl/lumc/sasc/biopet/pipelines/generateindexes/WriteConfigTest.scala
+24
-0
24 additions, 0 deletions
...sc/biopet/pipelines/generateindexes/WriteConfigTest.scala
with
24 additions
and
0 deletions
generate-indexes/src/test/scala/nl/lumc/sasc/biopet/pipelines/generateindexes/WriteConfigTest.scala
0 → 100644
+
24
−
0
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"
)
}
}
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