This is an automated email from the ASF dual-hosted git repository.

borinquenkid pushed a commit to branch 8.0.x-hibernate7
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit c42bc0d833c78970cc0fd1bc4beea5d0f964bd45
Author: Walter B Duque de Estrada <[email protected]>
AuthorDate: Sat Jan 10 16:03:51 2026 -0600

    more fixes
---
 grails-data-hibernate7/core/HIBERNATE7-TESTS.csv     |  8 ++------
 .../domainbinding/NamespaceNameExtractorSpec.groovy  | 20 ++++++++------------
 2 files changed, 10 insertions(+), 18 deletions(-)

diff --git a/grails-data-hibernate7/core/HIBERNATE7-TESTS.csv 
b/grails-data-hibernate7/core/HIBERNATE7-TESTS.csv
index 34321d02db..a65e5133b7 100644
--- a/grails-data-hibernate7/core/HIBERNATE7-TESTS.csv
+++ b/grails-data-hibernate7/core/HIBERNATE7-TESTS.csv
@@ -5,13 +5,9 @@
  
`src/test/groovy/org/grails/orm/hibernate/cfg/domainbinding/CascadeBehaviorPersisterSpec.groovy`
 , FAILED , Unsupported cascade style: save-update.
  
`src/test/groovy/org/grails/orm/hibernate/cfg/domainbinding/CascadeBehaviorFetcherSpec.groovy`
 , FAILED , Expected save-update but got all.
  
`src/test/groovy/org/grails/orm/hibernate/cfg/domainbinding/ColumnBinderSpec.groovy`
 , FAILED ," Column name mismatch: got ""test"" instead of expected. "
- 
`src/test/groovy/org/grails/orm/hibernate/cfg/domainbinding/IndexBinderSpec.groovy`
 , FAILED , Sealed class org.hibernate.mapping.Column cannot be mocked. 
- 
`src/test/groovy/org/grails/orm/hibernate/cfg/domainbinding/NamespaceNameExtractorSpec.groovy`
 , FAILED , Final class org.hibernate.boot.model.relational.Namespace$Name 
cannot be mocked. 
- 
`src/test/groovy/org/grails/orm/hibernate/cfg/domainbinding/NumericColumnConstraintsBinderSpec.groovy`
 , FAILED , Sealed class org.hibernate.mapping.Column cannot be mocked. 
- 
`src/test/groovy/org/grails/orm/hibernate/cfg/domainbinding/DefaultColumnNameFetcherSpec.groovy`
 , FAILED , Package/class name parts in generated column names use dots instead 
of underscores? 
+ 
`src/test/groovy/org/grails/orm/hibernate/cfg/domainbinding/DefaultColumnNameFetcherSpec.groovy`
 , FAILED , Package/class name parts in generated column names use dots instead 
of underscores?
  
`src/test/groovy/org/grails/orm/hibernate/compiler/HibernateEntityTransformationSpec.groovy`
 , FAILED , Compilation error: Can't have an abstract method in a non-abstract 
class. 
- 
`src/test/groovy/org/grails/orm/hibernate/BidirectionalManyToOneWithListMappingSpec.groovy`
 , FAILED , Final class org.hibernate.mapping.ManyToOne cannot be mocked. 
- `src/test/groovy/grails/gorm/specs/HibernateGormDatastoreSpec.groovy` , 
PENDING , 
+ `src/test/groovy/grails/gorm/specs/HibernateGormDatastoreSpec.groovy` , 
PENDING ,
  `src/test/groovy/grails/gorm/specs/ExecuteQueryWithinValidatorSpec.groovy` , 
FAILED , Hibernate 7 removal: Session.save() method missing. 
  `src/test/groovy/grails/gorm/specs/proxy/Hibernate6GroovyProxySpec.groovy` , 
FAILED , Hibernate 7 change: location.isInitialized() method missing. 
  
`src/test/groovy/grails/gorm/specs/hasmany/TwoUnidirectionalHasManySpec.groovy` 
, FAILED , SQL Syntax error: Qualified column names in DDL. 
diff --git 
a/grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/cfg/domainbinding/NamespaceNameExtractorSpec.groovy
 
b/grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/cfg/domainbinding/NamespaceNameExtractorSpec.groovy
index 6688d5a471..f1e89a4758 100644
--- 
a/grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/cfg/domainbinding/NamespaceNameExtractorSpec.groovy
+++ 
b/grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/cfg/domainbinding/NamespaceNameExtractorSpec.groovy
@@ -26,15 +26,14 @@ class NamespaceNameExtractorSpec extends Specification {
         def mockMappings = Mock(InFlightMetadataCollector)
         def mockDatabase = Mock(Database)
         def mockNamespace = Mock(Namespace)
-        def mockNamespaceName = Mock(Namespace.Name)
         def mockSchemaIdentifier = Mock(Identifier)
+        def namespaceName = new Namespace.Name(null, mockSchemaIdentifier)
         def expectedSchema = "my_schema"
 
         and: "The mocks are configured to return the next object in the chain"
         mockMappings.getDatabase() >> mockDatabase
         mockDatabase.getDefaultNamespace() >> mockNamespace
-        mockNamespace.getName() >> mockNamespaceName
-        mockNamespaceName.getSchema() >> mockSchemaIdentifier
+        mockNamespace.getName() >> namespaceName
         mockSchemaIdentifier.getCanonicalName() >> expectedSchema
 
         when: "the schema name is extracted"
@@ -50,7 +49,8 @@ class NamespaceNameExtractorSpec extends Specification {
         def mockMappings = Mock(InFlightMetadataCollector)
         def mockDatabase = Mock(Database)
         def mockNamespace = Mock(Namespace)
-        def mockNamespaceName = Mock(Namespace.Name)
+        def mockSchemaIdentifier = Mock(Identifier)
+        def namespaceName = new Namespace.Name(null, mockSchemaIdentifier)
 
         and: "The mock chain is built only up to the point of failure"
         switch (failurePoint) {
@@ -69,8 +69,7 @@ class NamespaceNameExtractorSpec extends Specification {
             case 'schema':
                 mockMappings.getDatabase() >> mockDatabase
                 mockDatabase.getDefaultNamespace() >> mockNamespace
-                mockNamespace.getName() >> mockNamespaceName
-                mockNamespaceName.getSchema() >> null
+                mockNamespace.getName() >> new Namespace.Name(null, null)
                 break
         }
 
@@ -103,15 +102,14 @@ class NamespaceNameExtractorSpec extends Specification {
         def mockMappings = Mock(InFlightMetadataCollector)
         def mockDatabase = Mock(Database)
         def mockNamespace = Mock(Namespace)
-        def mockNamespaceName = Mock(Namespace.Name)
         def mockCatalogIdentifier = Mock(Identifier)
+        def namespaceName = new Namespace.Name(mockCatalogIdentifier, null)
         def expectedCatalog = "my_catalog"
 
         and: "The mocks are configured to return the next object in the chain"
         mockMappings.getDatabase() >> mockDatabase
         mockDatabase.getDefaultNamespace() >> mockNamespace
-        mockNamespace.getName() >> mockNamespaceName
-        mockNamespaceName.getCatalog() >> mockCatalogIdentifier
+        mockNamespace.getName() >> namespaceName
         mockCatalogIdentifier.getCanonicalName() >> expectedCatalog
 
         when: "the catalog name is extracted"
@@ -127,7 +125,6 @@ class NamespaceNameExtractorSpec extends Specification {
         def mockMappings = Mock(InFlightMetadataCollector)
         def mockDatabase = Mock(Database)
         def mockNamespace = Mock(Namespace)
-        def mockNamespaceName = Mock(Namespace.Name)
 
         and: "The mock chain is built only up to the point of failure"
         switch (failurePoint) {
@@ -146,8 +143,7 @@ class NamespaceNameExtractorSpec extends Specification {
             case 'catalog':
                 mockMappings.getDatabase() >> mockDatabase
                 mockDatabase.getDefaultNamespace() >> mockNamespace
-                mockNamespace.getName() >> mockNamespaceName
-                mockNamespaceName.getCatalog() >> null
+                mockNamespace.getName() >> new Namespace.Name(null, null)
                 break
         }
 

Reply via email to