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