[infinispan-dev] Creating cache managers in your unit tests

Vladimir Blagojevic vblagoje at redhat.com
Fri Jan 8 10:14:05 EST 2010


Ok excellent, we are on the same page and in the meantime I should spend some more time reading JIRA reports more thoroughly:)  
 
On 2010-01-08, at 4:00 PM, Mircea Markus wrote:

> stop right here! :)
> this is tricky with TestNG when it comes to inheritance.
> BaseTest {
>   testMethod() {
>     TestCacheManagersFactory.getCacheManager(); 
>   }
> }
> 
> OtherTest extends BasteTest {
> }
> 
> when running OtherTest.testMethod, the TestCacheManagersFactory.getCacheManager will appear as being called from BaseTest rather than the actual class which is OtherTest. This is why, in JBC , we pass the actual .class as a parameter to TestCacheManagersFactory.getCacheManager  






More information about the infinispan-dev mailing list