Re: SoftCacheTest is Failing

2009-12-23 Thread Dan Forward
{ >>          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

Re: SoftCacheTest is Failing

2009-12-23 Thread Clinton Begin
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.

Re: SoftCacheTest is Failing

2009-12-23 Thread Nathan Maves
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

SoftCacheTest is Failing

2009-12-23 Thread Dan Forward
1) + " entries."); break; } } assertTrue(cache.getSize() < N); } -- View this message in context: http://old.nabble.com/SoftCacheTest-is-Failing-tp26905687p26905687.html Sent