File tree 1 file changed +6
-9
lines changed
src/test/java/life/qbic/registration/openbis
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -2,27 +2,24 @@ package life.qbic.registration.openbis
2
2
3
3
import spock.lang.Specification
4
4
5
- /**
6
- * TODO!
7
- * <b >short description</b>
8
- *
9
- * <p >detailed description</p>
10
- *
11
- * @since <version tag>
12
- */
13
5
class ProvenanceParserTest extends Specification {
14
6
15
7
final File validFile = new File (ProvenanceParserTest . class. getClassLoader(). getResource(" valid-provenance.json" ). toURI());
16
8
17
- def " parsing just works" () {
9
+ def " parsing a valid file works" () {
18
10
when :
19
11
var resultingProvenanceObject = new ProvenanceParser (). parseProvenanceJson(validFile)
20
12
then :
21
13
resultingProvenanceObject. measurementId() == " NGSQTEST001AE-1234512312"
14
+ and :
22
15
resultingProvenanceObject. origin() == " /Users/myuser/registration"
16
+ and :
23
17
resultingProvenanceObject. datasetFiles() == [" file1.fastq.gz" , " file2.fastq.gz" ]
18
+ and :
24
19
resultingProvenanceObject. user() == " /Users/myuser"
20
+ and :
25
21
resultingProvenanceObject. taskId() == " ce36775e-0d06-471e-baa7-1e3b63de871f"
22
+ and :
26
23
resultingProvenanceObject. history() == [" /some/dir" , " /some/other/dir" ]
27
24
}
28
25
}
You can’t perform that action at this time.
0 commit comments