This is an automated email from the ASF dual-hosted git repository. borinquenkid pushed a commit to branch merge-hibernate6 in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit 5eb813347df9a5841bc8df6c7e432160fff6a999 Author: Walter Duque de Estrada <[email protected]> AuthorDate: Thu Sep 4 22:13:39 2025 -0500 Test now asserting exception thrown --- .../grails/gorm/specs/validation/SaveWithInvalidEntitySpec.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grails-data-hibernate6/core/src/test/groovy/grails/gorm/specs/validation/SaveWithInvalidEntitySpec.groovy b/grails-data-hibernate6/core/src/test/groovy/grails/gorm/specs/validation/SaveWithInvalidEntitySpec.groovy index 66b5712667..39f3a5a166 100644 --- a/grails-data-hibernate6/core/src/test/groovy/grails/gorm/specs/validation/SaveWithInvalidEntitySpec.groovy +++ b/grails-data-hibernate6/core/src/test/groovy/grails/gorm/specs/validation/SaveWithInvalidEntitySpec.groovy @@ -18,6 +18,7 @@ */ package grails.gorm.specs.validation + import grails.gorm.annotation.Entity import grails.gorm.transactions.Rollback import org.grails.orm.hibernate.HibernateDatastore @@ -46,7 +47,7 @@ class SaveWithInvalidEntitySpec extends Specification { hibernateDatastore.currentSession.flush() then: - A.count() == 1 + IllegalStateException e = thrown() } }
