[
https://issues.jboss.org/browse/ISPN-3316?page=com.atlassian.jira.plugin....
]
Galder Zamarreño commented on ISPN-3316:
----------------------------------------
The problem, as mentioned in ISPN-3735 is that t injected cache resolver is not being used
as alternative implementation for the cache resolver. This is because in CDI 1.0,
alternatives can only be applied for injections in application, and not in libraries used
by the application. Instead, I've created a paralell set of InjectCache*Interceptor
classes for when InjectedCacheResolver is needed. I've tested the CDI quickstart with
EAP 7.2 and it works fine.
CDI Cache interceptor tests are failing while running in EAP
container
----------------------------------------------------------------------
Key: ISPN-3316
URL:
https://issues.jboss.org/browse/ISPN-3316
Project: Infinispan
Issue Type: Bug
Components: CDI integration
Affects Versions: 5.3.0.Final, 6.0.0.Final
Reporter: Anna Manukyan
Assignee: Galder Zamarreño
Labels: 620
Fix For: 6.1.0.Final
While migration of the CDI related tests to work under EAP container (at the moment using
6.0.GA), it was found that the tests related to interceptors are failing. The issue
relates to
org.infinispan.cdi.test.interceptor.CachePutInterceptorTest,
org.infinispan.cdi.test.interceptor.CacheRemoveAllInterceptorTest,
org.infinispan.cdi.test.interceptor.CacheRemoveInterceptorTest,
org.infinispan.cdi.test.interceptor.CacheResultInterceptorTest.
The failure relates to assertions. The thing is that all actions which are done using
javax.cache.cache-api annotations, work properly (I've added some logs e.g. in
CachePutInterceptor, and it shows that the data is put to the cache properly).
But later when the test wants to verify that the data is really put to the data,
retrieves the cache from the injected CacheContainer, the cache is empty - the data is not
there.
The issue appeared since the latest changes to the Infinispan-CDI module, and split to
infinispan-jcache module. For the previous version, the tests are passed under EAP
container.
The example above was given for the CachePutInterceptorTest, but the same refers to the
rest of them.
The git repo for the sources, will be provided later.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira