Ignore:
Timestamp:
Jan 28, 2011, 12:30:39 PM (9 years ago)
Author:
robert@…
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/integration/nl/tno/metagenomics/integration/SynchronizationServiceTests.groovy

    r7 r9  
    7272
    7373                gscf.setRestResponse( "getSamples", "1a", [
    74                         [ sampleToken: "S1", name: "sample 1" ],
    75                         [ sampleToken: "S2", name: "sample 2" ],
    76                         [ sampleToken: "S3", name: "sample 3" ]
     74                        [ sampleToken: "S1", name: "sample 1", subject: "subject 1", event: "blood extraction", startTime: "0s" ],
     75                        [ sampleToken: "S2", name: "sample 2", subject: "subject 2", event: "blood extraction" ],
     76                        [ sampleToken: "S3", name: "sample 3", subject: "subject 3", event: "blood extraction" ]
    7777                ] as JSON );
    7878
    7979                gscf.setRestResponse( "getSamples", "1b", [
    80                         [ sampleToken: "S1", name: "sample 1" ],
    81                         [ sampleToken: "S3", name: "sample 3" ]
     80                        [ sampleToken: "S1", name: "sample 1", subject: "subject 1", event: "blood extraction", startTime: "0s" ],
     81                        [ sampleToken: "S3", name: "sample 3", subject: "subject 3", event: "blood extraction" ]
    8282                ] as JSON );
    8383
     
    118118                assert s1.samples*.name.contains( "sample 2" );
    119119                assert s1.samples*.name.contains( "sample 3" );
     120
     121                def testsample = s1.samples.find { it.name == "sample 1" }
     122                assert testsample.subject == "subject 1";
     123                assert testsample.event == "blood extraction (0s)"
     124
     125                testsample = s1.samples.find { it.name == "sample 2" }
     126                assert testsample.subject == "subject 2";
     127                assert testsample.event == "blood extraction"
    120128
    121129                def a1 = s1.assays.find { it.name == "assay 1a" }
Note: See TracChangeset for help on using the changeset viewer.