junit suite wide setup (not @BeforeClass)

Main menu:

Topics

Recent Posts

Blog

 

April 2010
M T W T F S S
« Mar   May »
 1234
567891011
12131415161718
19202122232425
2627282930  

Past Posts

Java/J2EE

JDBC

Other

Archive for April 12th, 2010

junit suite wide setup (not @BeforeClass)

April 12th, 2010 by Jeanne Boyarsky

Problem How do I run setup/teardown for my whole suite, not just one class/test? Impact of Problem JUnit offers @Before to run a method before each test and @BeforeClass to run a method once before a class.  For a small suite, @BeforeClass may be enough.  For a large integration test suite, setting up the database [...]


Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 525098080 bytes) in Unknown on line 0