Skip to content

Commit

Permalink
Remove test dependency gorm-hibernate
Browse files Browse the repository at this point in the history
Closes gh-12
  • Loading branch information
rainboyan committed Oct 16, 2024
1 parent 645cff4 commit 6e47432
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion grace-scaffolding-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ dependencies {
compileOnly "jakarta.annotation:jakarta.annotation-api:$jakartaAnnotationVersion"

testImplementation "org.hibernate:hibernate-core-jakarta:$hibernateCoreVersion"
testImplementation "org.graceframework:grace-datastore-gorm-hibernate:$gormVersion"
testImplementation "org.spockframework:spock-core:$spockVersion"
testImplementation "net.bytebuddy:byte-buddy:$byteBuddyVersion"
testImplementation "org.objenesis:objenesis:$objenesisVersion"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.grails.scaffolding.model.property

import org.grails.orm.hibernate.cfg.HibernateMappingContext
import org.grails.scaffolding.model.MocksDomain
import org.grails.datastore.mapping.keyvalue.mapping.config.KeyValueMappingContext
import org.grails.datastore.mapping.model.MappingContext
Expand Down Expand Up @@ -171,7 +170,7 @@ class DomainPropertySpec extends Specification implements MocksDomain {

void "test sort w/ Hibernate embedded"() {
given:
List<DomainProperty> properties = new HibernateMappingContext().createEmbeddedEntity(EmbeddedClassEntity).persistentProperties.collect {
List<DomainProperty> properties = new KeyValueMappingContext("test").createEmbeddedEntity(EmbeddedClassEntity).persistentProperties.collect {
new DomainPropertyImpl(it, mappingContext)
}
properties.sort()
Expand Down

0 comments on commit 6e47432

Please sign in to comment.