Changeset 1590 for trunk/test/integration
- Timestamp:
- Mar 4, 2011, 4:28:45 PM (11 years ago)
- Location:
- trunk/test/integration/gscf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/integration/gscf/OntologyTests.groovy
r1545 r1590 77 77 78 78 // Create a new term 79 def term = new Term( 80 name: testTermName, 81 accession: testAccession, 82 ontology: testOntology 83 ) 79 def term = Term.getOrCreateTerm(testTermName, testOntology, testAccession) 84 80 85 81 assert term.validate() -
trunk/test/integration/gscf/SubjectTests.groovy
r1545 r1590 48 48 assert humanTemplate 49 49 50 def speciesOntology = Ontology.getOrCreateOntologyByNcboId(1132) 51 def humanTerm = new Term( 52 name: 'Homo sapiens', 53 ontology: speciesOntology, 54 accession: '9606') 55 56 assert humanTerm.validate() 57 assert humanTerm.save(flush:true) 58 assert humanTerm 50 def humanTerm = Term.getOrCreateTerm('Homo sapiens',Ontology.getOrCreateOntologyByNcboId(1132),'9606') 51 52 //assert humanTerm.validate() 53 //assert humanTerm.save(flush:true) 54 //assert humanTerm 59 55 60 56 def subject = new Subject(
Note: See TracChangeset
for help on using the changeset viewer.