Bootstrapping Grails integration tests
It is quite easy to prepare test environment the same as the development one. Just use Bootstrap.
class BootstrappedTests extends GroovyTestCase {
void testBootstrap() {
new BootStrap().init(null)
assert MyDomain.count() == 5 // Perform your tests here
}
}|
| Published on June 18th, 2008 | | No Comments | | Posted by Roman Mackovcak |
