Skip to content

Commit 917986f

Browse files
Graeme RocherGraeme Rocher
authored andcommitted
Restore call to enhance(..)
1 parent 48530ea commit 917986f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ class DomainClassUnitTestMixin extends GrailsUnitTestMixin {
8181
simpleDatastore.mappingContext.addEntityValidator(entity, validator)
8282
}
8383
final failOnError = getFailOnError()
84-
new GormEnhancer(simpleDatastore, transactionManager, failOnError instanceof Boolean ? (Boolean)failOnError : false)
84+
def enhancer = new GormEnhancer(simpleDatastore, transactionManager, failOnError instanceof Boolean ? (Boolean) failOnError : false)
85+
enhancer.enhance()
8586

8687
initializeMappingContext()
8788
}

0 commit comments

Comments
 (0)