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
2777f0f7
Commit
2777f0f7
authored
Feb 24, 2016
by
Peter van 't Hof
Browse files
style changes
parent
54130b40
Changes
3
Hide whitespace changes
Inline
Side-by-side
public/biopet-core/src/test/scala/nl/lumc/sasc/biopet/core/report/MultisampleReportBuilderTest.scala
View file @
2777f0f7
...
...
@@ -9,8 +9,8 @@ import org.scalatest.testng.TestNGSuite
import
org.testng.annotations.Test
/**
* Created by pjvanthof on 24/02/16.
*/
* Created by pjvanthof on 24/02/16.
*/
class
MultisampleReportBuilderTest
extends
TestNGSuite
with
Matchers
{
private
def
resourcePath
(
p
:
String
)
:
String
=
{
Paths
.
get
(
getClass
.
getResource
(
p
).
toURI
).
toString
...
...
@@ -33,7 +33,14 @@ class MultisampleReportBuilderTest extends TestNGSuite with Matchers {
val
args
=
Array
(
"-s"
,
resourcePath
(
"/empty_summary.json"
),
"-o"
,
tempDir
.
getAbsolutePath
)
builder
.
main
(
args
)
builder
.
extFiles
.
foreach
(
x
=>
new
File
(
tempDir
,
"ext"
+
File
.
separator
+
x
.
targetPath
)
should
exist
)
new
File
(
tempDir
,
"index.html"
)
should
exist
def
createFile
(
path
:
String*
)
=
new
File
(
tempDir
,
path
.
mkString
(
File
.
separator
))
createFile
(
"index.html"
)
should
exist
createFile
(
"Samples"
,
"index.html"
)
should
exist
createFile
(
"Samples"
,
"sampleName"
,
"index.html"
)
should
exist
createFile
(
"Samples"
,
"sampleName"
,
"Libraries"
,
"index.html"
)
should
exist
createFile
(
"Samples"
,
"sampleName"
,
"Libraries"
,
"libName"
,
"index.html"
)
should
exist
}
}
public/biopet-core/src/test/scala/nl/lumc/sasc/biopet/core/report/ReportBuilderTest.scala
View file @
2777f0f7
...
...
@@ -6,11 +6,11 @@ import java.nio.file.Paths
import
com.google.common.io.Files
import
org.scalatest.Matchers
import
org.scalatest.testng.TestNGSuite
import
org.testng.annotations.
{
DataProvider
,
Test
}
import
org.testng.annotations.
{
DataProvider
,
Test
}
/**
* Created by pjvanthof on 24/02/16.
*/
* Created by pjvanthof on 24/02/16.
*/
class
ReportBuilderTest
extends
TestNGSuite
with
Matchers
{
private
def
resourcePath
(
p
:
String
)
:
String
=
{
...
...
public/biopet-core/src/test/scala/nl/lumc/sasc/biopet/core/report/ReportSectionTest.scala
View file @
2777f0f7
...
...
@@ -5,8 +5,8 @@ import org.scalatest.testng.TestNGSuite
import
org.testng.annotations.Test
/**
* Created by pjvanthof on 24/02/16.
*/
* Created by pjvanthof on 24/02/16.
*/
class
ReportSectionTest
extends
TestNGSuite
with
Matchers
{
@Test
...
...
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