Changeset 1520


Ignore:
Timestamp:
Feb 14, 2011, 2:31:37 PM (6 years ago)
Author:
robert@…
Message:

Fixed sample search integration test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/integration/dbnp/query/SampleSearchTests.groovy

    r1456 r1520  
    11package dbnp.query
    22
     3import dbnp.authentication.SecUser
    34import dbnp.studycapturing.*
    45
     
    132133                def search = new SampleSearch();
    133134
     135                // Make sure the 'user' is logged in
     136                search.user = SecUser.findByUsername('user');
     137               
    134138                search.setCriteria( [ criteria[0] ] );
    135139                search.execute();
     
    166170               
    167171                def search = new SampleSearch();
     172
     173                // Make sure the 'user' is logged in
     174                search.user = SecUser.findByUsername('user');
    168175
    169176                // All criteria should result in 1 sample with code 'abc'
     
    193200                def search = new SampleSearch();
    194201
     202                // Make sure the 'user' is logged in
     203                search.user = SecUser.findByUsername('user');
     204               
    195205                // All criteria should result in 1 study with code 'abc'
    196206                criteria.each {
Note: See TracChangeset for help on using the changeset viewer.