Skip to content

Commit

Permalink
fix failing test, by initializing mapping context before enhancing do…
Browse files Browse the repository at this point in the history
…main
  • Loading branch information
graemerocher committed Feb 15, 2013
1 parent f62efd7 commit 97a2c4d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -131,8 +131,8 @@ class DomainClassUnitTestMixin extends GrailsUnitTestMixin {

}
def enhancer = new GormEnhancer(simpleDatastore, transactionManager)
enhancer.enhance()
simpleDatastore.mappingContext.initialize()
enhancer.enhance()
}
/**
* Mocks a domain class providing the equivalent GORM behavior but against an in-memory concurrent hash map instead
Expand Down

0 comments on commit 97a2c4d

Please sign in to comment.