Skip to content

Commit 97a2c4d

Browse files
committed
fix failing test, by initializing mapping context before enhancing domain
1 parent f62efd7 commit 97a2c4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-plugin-testing/src/main/groovy/grails/test/mixin/domain/DomainClassUnitTestMixin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ class DomainClassUnitTestMixin extends GrailsUnitTestMixin {
131131

132132
}
133133
def enhancer = new GormEnhancer(simpleDatastore, transactionManager)
134-
enhancer.enhance()
135134
simpleDatastore.mappingContext.initialize()
135+
enhancer.enhance()
136136
}
137137
/**
138138
* Mocks a domain class providing the equivalent GORM behavior but against an in-memory concurrent hash map instead

0 commit comments

Comments
 (0)