grails.gorm.tests.QueryByNullSpec.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grace-datastore-gorm-tck Show documentation
Show all versions of grace-datastore-gorm-tck Show documentation
Grace Data : Grace Datastore Gorm Tck
package grails.gorm.tests
class QueryByNullSpec extends GormDatastoreSpec {
void 'Test passing null as the sole argument to a dynamic finder multiple times'() {
// see GRAILS-3463
when:
def people = Person.findAllByLastName(null)
then:
!people
when:
people - Person.findAllByLastName(null)
then:
!people
}
}