[infinispan-dev] Dependency injection issue
Galder Zamarreno
galder.zamarreno at redhat.com
Wed Aug 5 10:33:57 EDT 2009
One thing to note about BaseCacheStoreTest is that all the tests within
it work directly with CacheStore and not Cache or CacheManager.
So, for tests related to cache stores where the test interacts with
Cache/CacheManager interface, I'd put them in a separate class.
On 08/05/2009 04:26 PM, Galder Zamarreno wrote:
> Mircea, if you were to call cache.start() in that
> testTwoCachesSameCacheStore, would that work?
>
> I've just seen an user report a similar whereby VAM's @Start method is
> not being called in spite of them calling cache.start()
>
> https://jira.jboss.org/jira/browse/ISPN-148
>
> On 08/05/2009 09:55 AM, Manik Surtani wrote:
>> That's because you're not calling cache.start() in the test. :-) It
>> is an isolated test to test the CacheStore. So yes, manually calling
>> start() on the Marshaller is the correct approach if you need a
>> start()'ed marshaller.
>>
>> Cheers
>> Manik
>>
>> On 4 Aug 2009, at 20:01, Mircea Markus wrote:
>>
>>> Hi,
>>>
>>> VersionAwareMarshaller.start does not get called and I don't know
>>> why, can you give me an helping hand on this?
>>> See BaseCacheStoreTest.testTwoCachesSameCacheStore, the TODO there.
>>>
>>> Cheers,
>>> Mircea
>>>
>>>
>> --
>> Manik Surtani
>> manik at jboss.org
>> Lead, Infinispan
>> Lead, JBoss Cache
>> http://www.infinispan.org
>> http://www.jbosscache.org
>>
>>
>>
>>
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache
More information about the infinispan-dev
mailing list