gorm - Grails 2.2.1 groupProperty on Integration tests -
for reason groupproperty not working on integration tests. i'm getting following exception:
groovy.lang.missingmethodexception: no signature of method: mypackage.carinttests.groupproperty() applicable argument types: (java.lang.string) values: [car]
def names = ['honda', 'toyota', 'nissan'] 3.times { garage.build(name: names[it]) } def results = garage.withcriteria { car { eq('brand', 'honda') } projections { groupproperty('car') } } assert results == names[0..0]
Comments
Post a Comment