Original Reporter: erdi
Environment: Not Specified
Version: Not Specified
Migrated From: http://jira.grails.org/browse/GPMONGODB-41
It would be nice if testing with DatastoreUnitTestMixin supported more (or maybe even all) of the hibernate criteria. At the moment if the query under test includes an 'ilike' criteria you will get the following exception:
No signature of method: grails.gorm.CriteriaBuilder.ilike() is applicable for argument types: (java.lang.String, org.codehaus.groovy.runtime.GStringImpl) values: [name, ex%]
Possible solutions: like(java.lang.String, java.lang.Object), lte(java.lang.String, java.lang.Object), wait(), id(), inList(java.lang.String, [Ljava.lang.Object;), inList(java.lang.String, java.util.Collection)