Grails

Grails: Few tips for writing integration tests

Just thought I would share with you few tips or key points we should remember while writing integration test cases: 1.  Flush and clear the session object for every single test case for example class FooTests extends GroovyTestCase { def sessionFactory void setUp() { sessionFactory.currentSession.flush() sessionFactory.currentSession.clear() } } 2.  Drop and create the test database […]

Amit Jain
Amit Jain
Read