Skip to content

Commit

Permalink
rename test
Browse files Browse the repository at this point in the history
  • Loading branch information
KochTobi committed May 24, 2024
1 parent 6d931d7 commit e77ad68
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,24 @@ package life.qbic.registration.openbis

import spock.lang.Specification

/**
* TODO!
* <b>short description</b>
*
* <p>detailed description</p>
*
* @since <version tag>
*/
class ProvenanceParserTest extends Specification {

final File validFile = new File(ProvenanceParserTest.class.getClassLoader().getResource("valid-provenance.json").toURI());

def "parsing just works"() {
def "parsing a valid file works"() {
when:
var resultingProvenanceObject = new ProvenanceParser().parseProvenanceJson(validFile)
then:
resultingProvenanceObject.measurementId() == "NGSQTEST001AE-1234512312"
and:
resultingProvenanceObject.origin() == "/Users/myuser/registration"
and:
resultingProvenanceObject.datasetFiles() == ["file1.fastq.gz", "file2.fastq.gz"]
and:
resultingProvenanceObject.user() == "/Users/myuser"
and:
resultingProvenanceObject.taskId() == "ce36775e-0d06-471e-baa7-1e3b63de871f"
and:
resultingProvenanceObject.history() == ["/some/dir", "/some/other/dir"]
}
}

0 comments on commit e77ad68

Please sign in to comment.