Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit d284095

Browse files
committed
change the test case to extend Specification instead of GormDatastoreSpec
1 parent f26e3b2 commit d284095

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

grails-datastore-gorm-hibernate5/src/test/groovy/grails/gorm/tests/validation/EmbeddedWithValidationExceptionSpec.groovy

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
package grails.gorm.tests.validation
22

33
import grails.gorm.annotation.Entity
4-
import grails.gorm.tests.GormDatastoreSpec
54
import grails.gorm.transactions.Rollback
65
import grails.validation.ValidationException
6+
import org.grails.orm.hibernate.HibernateDatastore
7+
import spock.lang.AutoCleanup
78
import spock.lang.Issue
9+
import spock.lang.Shared
10+
import spock.lang.Specification
811

9-
class EmbeddedWithValidationExceptionSpec extends GormDatastoreSpec {
10-
@Override
11-
List getDomainClasses() {
12-
return [DomainWithEmbedded]
13-
}
12+
class EmbeddedWithValidationExceptionSpec extends Specification {
13+
@Shared @AutoCleanup HibernateDatastore hibernateDatastore = new HibernateDatastore(DomainWithEmbedded)
1414

1515
@Rollback
1616
@Issue("https://github.com/grails/gorm-hibernate5/issues/110")

0 commit comments

Comments
 (0)