On 09-10-09 11:35 AM, Manik Surtani wrote:
Yes, but you said that superclass @AfterClass methods won't be
invoked
anyway ... so UnitTestTestNGListener probably makes more sense.
TestNG starts from the leaf class and searches for a first class that
has a method annotated with @AfterClass and invokes it. It does not
continue to climb the hierarchy. However, all needs to be done is to
invoke super from SingleCacheManagerTest and MultipleCacheManagerTest.
However, that said, we are still left with a bunch of test classes that
do not inherit from AbstractCacheTest :(
So yes, I'll see how to hookup UnitTestTestNGListener :)
Cheers
On 9 Oct 2009, at 16:16, Vladimir Blagojevic wrote:
> Or we can put it in AbstractCacheTest. Great idea either way!
>
> On 09-10-09 3:34 AM, Manik Surtani wrote:
>
>> Hi Vladimir
>>
>> Thanks for looking into this. Can't we add some hooks into
>> UnitTestTestNGListener to clean up the test class, setting internal
>> refs to null using reflection? This would then be pretty non-
>> intrusive to the actual test...
>>
>> Cheers
>> Manik
>>
>>
>>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
--
Manik Surtani
manik(a)jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org
_______________________________________________
infinispan-dev mailing list
infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev