Created
September 11, 2009 12:02
-
-
Save tomgullo/185252 to your computer and use it in GitHub Desktop.
grails test with datasource
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GrailsTest extends GroovyTestCase implements ApplicationContextAware { | |
ApplicationContext app | |
def controller | |
void setUp() { | |
super.setUp() | |
controller = MyController() | |
controller.dataSource = app.getBean("dataSource") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment