Quantcast

Testing Grails 2.0

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Testing Grails 2.0

Holger Schulz
Hello,
 
I am missing the setup() and tearDown()  in grails 2.0 testing. In the grails 2.0 testing documentation
I couldn´t find anything (http://grails.org/doc/latest/guide/testing.html#unitTesting).

Is there anything like that in grails 2.0?

Thanks
Holger 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Testing Grails 2.0

Roberto Guerra
Grails 2.0 uses jUnit4. You can annotate any method with @Before, @After to do what you want to achieve.

@Before
def setUp(){}

@After 
def setUp(){}

This gives a quick overview of JUnit 4: http://www.cavdar.net/2008/07/21/junit-4-in-60-seconds/


On Tue, Jun 26, 2012 at 5:58 AM, Holger Schulz <[hidden email]> wrote:
Hello,
 
I am missing the setup() and tearDown()  in grails 2.0 testing. In the grails 2.0 testing documentation
I couldn´t find anything (http://grails.org/doc/latest/guide/testing.html#unitTesting).

Is there anything like that in grails 2.0?

Thanks
Holger 



--
The Journey Is The Reward.
Loading...