A lot of our tests have:
@Rule
public final LoggerContextRule ctx = new LoggerContextRule(CONFIG);
I propose that we shift this where possible to using @ClassRule since it is
usually the case that the configuration does not need to be reset for each
@Test method.
Gary
--
E-Mail: [email protected] | [email protected]
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory