{
>> byte[] array = new byte[5001]; //waste a bunch of memory
>> array[5000] = 1;
>> cache.putObject(i, array);
>> Object value = cache.getObject(i);
>> if (cache.getSize() < i + 1) {
>> Syst
yte[5001]; //waste a bunch of memory
> > array[5000] = 1;
> > cache.putObject(i, array);
> > Object value = cache.getObject(i);
> > if (cache.getSize() < i + 1) {
> > System.out.
if (cache.getSize() < i + 1) {
> System.out.println("Cache exceeded with " + (i + 1) + "
> entries.");
> break;
> }
> }
> assertTrue(cache.getSize() < N);
> }
>
> --
> View this message in context:
> http://old.na
1) + "
entries.");
break;
}
}
assertTrue(cache.getSize() < N);
}
--
View this message in context:
http://old.nabble.com/SoftCacheTest-is-Failing-tp26905687p26905687.html
Sent