directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: Test @Before vs @BeforeClass
Date Wed, 09 Jun 2010 09:47:47 GMT
On 6/9/10 11:42 AM, Felix Knecht wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> IMO there exists multiple tests making inefficent use of the @Before
> annotation (which is executed before each test method) e.g. [1]. Using
> @BeforeClass would be run only once before all test methods.
> For sure their exists cases where it's needed to reinitialize variables
> before each single test, but this will make it (for those tests)
> impossible to run them //.
>
> Can I move them to @BeforeClass where possible?
>    
Sure !

-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.nextury.com



Mime
View raw message