[infinispan-dev] usage of alwaysRun=true on @BeforeMethod and alike
Manik Surtani
msurtani at redhat.com
Thu May 9 05:35:35 EDT 2013
On 8 May 2013, at 22:29, Mircea Markus <mmarkus at redhat.com> wrote:
>
> Writing tearDown like this should solve the problem:
> @AfterMethod (alwaysRun=true)
> void tearDown() {
> if (cm != null) cm.stop();
> }
This is why we have test helpers. E.g.,
TestingUtil.killCacheManagers(cm);
--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani
Platform Architect, JBoss Data Grid
http://red.ht/data-grid
More information about the infinispan-dev
mailing list