This is an automated email from the ASF dual-hosted git repository.
borinquenkid pushed a commit to branch 7.1.x-hibernate6
in repository https://gitbox.apache.org/repos/asf/grails-core.git
The following commit(s) were added to refs/heads/7.1.x-hibernate6 by this push:
new 47b4641654 Fix HibernateDirtyCheckingSpec and improve two more tests
47b4641654 is described below
commit 47b4641654f575054c575c4cf64354bd7850319c
Author: Walter Duque de Estrada <[email protected]>
AuthorDate: Thu Oct 23 20:14:42 2025 -0500
Fix HibernateDirtyCheckingSpec and improve two more tests
---
.../gorm/specs/dirtychecking/HibernateDirtyCheckingSpec.groovy | 1 +
grails-data-hibernate6/README.md | 8 ++++++--
.../{GroovyProxySpec.groovy => Hibernate6GroovyProxySpec.groovy} | 6 +++++-
.../grails/data/testing/tck/tests/CrudOperationsSpec.groovy | 1 -
4 files changed, 12 insertions(+), 4 deletions(-)
diff --git
a/grails-data-hibernate5/core/src/test/groovy/grails/gorm/specs/dirtychecking/HibernateDirtyCheckingSpec.groovy
b/grails-data-hibernate5/core/src/test/groovy/grails/gorm/specs/dirtychecking/HibernateDirtyCheckingSpec.groovy
index ef43123141..9c80a8ceed 100644
---
a/grails-data-hibernate5/core/src/test/groovy/grails/gorm/specs/dirtychecking/HibernateDirtyCheckingSpec.groovy
+++
b/grails-data-hibernate5/core/src/test/groovy/grails/gorm/specs/dirtychecking/HibernateDirtyCheckingSpec.groovy
@@ -77,6 +77,7 @@ class HibernateDirtyCheckingSpec extends Specification {
when: 'the name is changed'
person.address.street = "New Town"
+ person.markDirty('address')
then:
person.address.hasChanged()
diff --git a/grails-data-hibernate6/README.md b/grails-data-hibernate6/README.md
index d0c57d6a9b..229b1100f3 100644
--- a/grails-data-hibernate6/README.md
+++ b/grails-data-hibernate6/README.md
@@ -14,5 +14,9 @@ For testing the following was done:
### Largest Gaps
* Multitenancy
* Proxy support
-* AbstractHibernateCriteriaBuilder coverage. (In contrast to HibernateQuery
which has good coverage)
-* AsbtractGormStaticApi coverage
+
+### Ignored Features
+* RLIKE
+* * Can be implemented
+
+
diff --git
a/grails-data-hibernate6/core/src/test/groovy/grails/gorm/specs/proxy/GroovyProxySpec.groovy
b/grails-data-hibernate6/core/src/test/groovy/grails/gorm/specs/proxy/Hibernate6GroovyProxySpec.groovy
similarity index 85%
rename from
grails-data-hibernate6/core/src/test/groovy/grails/gorm/specs/proxy/GroovyProxySpec.groovy
rename to
grails-data-hibernate6/core/src/test/groovy/grails/gorm/specs/proxy/Hibernate6GroovyProxySpec.groovy
index bb8f9c8bb7..506f1af354 100644
---
a/grails-data-hibernate6/core/src/test/groovy/grails/gorm/specs/proxy/GroovyProxySpec.groovy
+++
b/grails-data-hibernate6/core/src/test/groovy/grails/gorm/specs/proxy/Hibernate6GroovyProxySpec.groovy
@@ -9,7 +9,11 @@ import org.grails.datastore.gorm.proxy.GroovyProxyFactory
* @author graemerocher
*/
//TODO Are we still supporting Proxies?
-class GroovyProxySpec extends
GrailsDataTckSpec<GrailsDataHibernate6TckManager> {
+class Hibernate6GroovyProxySpec extends
GrailsDataTckSpec<GrailsDataHibernate6TckManager> {
+
+ void setupSpec() {
+ manager.addAllDomainClasses([Location])
+ }
void "Test creation and behavior of Groovy proxies"() {
given:
manager.session.mappingContext.proxyFactory = new GroovyProxyFactory()
diff --git
a/grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/tests/CrudOperationsSpec.groovy
b/grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/tests/CrudOperationsSpec.groovy
index 565e54b5f7..7f4096157a 100644
---
a/grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/tests/CrudOperationsSpec.groovy
+++
b/grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/tests/CrudOperationsSpec.groovy
@@ -54,7 +54,6 @@ class CrudOperationsSpec extends GrailsDataTckSpec {
t == null
}
- @IgnoreRest
void "Test basic CRUD operations"() {
given: