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
acbf24e0
Commit
acbf24e0
authored
Jan 14, 2016
by
Peter van 't Hof
Browse files
Added test for summarizable
parent
be4fc224
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-core/src/test/scala/nl/lumc/sasc/biopet/core/summary/SummarizableTest.scala
0 → 100644
View file @
acbf24e0
package
nl.lumc.sasc.biopet.core.summary
import
java.io.File
import
org.scalatest.Matchers
import
org.scalatest.testng.TestNGSuite
import
org.testng.annotations.Test
/**
* Created by pjvanthof on 14/01/16.
*/
class
SummarizableTest
extends
TestNGSuite
with
Matchers
{
@Test
def
testDefaultMerge
:
Unit
=
{
val
summarizable
=
new
Summarizable
{
def
summaryFiles
:
Map
[
String
,
File
]
=
???
def
summaryStats
:
Any
=
???
}
intercept
[
IllegalStateException
]
{
summarizable
.
resolveSummaryConflict
(
"1"
,
"1"
,
"key"
)
}
}
def
testOverrideMerge
:
Unit
=
{
val
summarizable
=
new
Summarizable
{
def
summaryFiles
:
Map
[
String
,
File
]
=
???
def
summaryStats
:
Any
=
???
override
def
resolveSummaryConflict
(
v1
:
Any
,
v2
:
Any
,
key
:
String
)
=
v1
}
summarizable
.
resolveSummaryConflict
(
"1"
,
"1"
,
"key"
)
shouldBe
"1"
}
}
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