[infinispan-issues] [JBoss JIRA] (ISPN-7724) getAllCacheEntries with byte[] throws ClassCastException
Radim Vansa (JIRA)
issues at jboss.org
Thu Apr 13 03:53:00 EDT 2017
Radim Vansa created ISPN-7724:
---------------------------------
Summary: getAllCacheEntries with byte[] throws ClassCastException
Key: ISPN-7724
URL: https://issues.jboss.org/browse/ISPN-7724
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.0.0.Final
Reporter: Radim Vansa
Assignee: Radim Vansa
Testcase:
{code}
public void testGetAllCacheEntriesWithBytes() {
Set<String> keys = new HashSet<>();
for (int i = 0; i < numEntries; ++i) {
String key = "key" + i;
advancedCache(i % numNodes).put(key, new byte[]{(byte) i});
keys.add(key);
}
List<Cache<String, byte[]>> caches = caches();
for (Cache<String, byte[]> cache : caches) {
Map<String, CacheEntry<String, byte[]>> map = cache.getAdvancedCache().getAllCacheEntries(keys);
assertEquals(map.size(), keys.size());
for (int i = 0; i < numEntries; ++i) {
CacheEntry<String, byte[]> entry = map.get("key" + i);
assertEquals(entry.getValue().length, 1);
assertEquals(entry.getValue()[0], i);
}
}
}
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list