Changeset 817
- Timestamp:
- Aug 17, 2010, 2:42:54 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/Study.groovy
r813 r817 318 318 msg += ", sample '${it.name}' was deleted" 319 319 this.removeFromSamples( it ) 320 // Also here, contrary to documentation, an extra delete() is needed 321 it.delete() 320 322 } 321 323 } … … 342 344 println ".remove eventGroup '${eventGroup.name}' from study '${this.title}'" 343 345 this.removeFromEventGroups(eventGroup) 346 // Also here, contrary to documentation, an extra delete() is needed 347 eventGroup.delete() 344 348 345 349 return msg -
trunk/test/integration/gscf/SampleTests.groovy
r812 r817 60 60 ) 61 61 62 if (!samplingEvent.validate()) {63 samplingEvent.errors.each { println it}64 }65 62 // The SamplingEvent should not validate at this point because it doesn't have a parent study 66 63 assert !samplingEvent.validate() … … 223 220 ) 224 221 study.addToEventGroups(group) 222 assert group.validate() 223 224 225 225 group.addToSubjects(subject) 226 226 group.addToSamplingEvents(event)
Note: See TracChangeset
for help on using the changeset viewer.