You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ec...@apache.org on 2012/10/14 16:26:40 UTC

svn commit: r1398090 - /accumulo/trunk/server/src/test/java/org/apache/accumulo/server/tabletserver/SimpleLRUCacheTest.java

Author: ecn
Date: Sun Oct 14 14:26:40 2012
New Revision: 1398090

URL: http://svn.apache.org/viewvc?rev=1398090&view=rev
Log:
ACCUMULO-774 add more testing to the LRU cache

Modified:
    accumulo/trunk/server/src/test/java/org/apache/accumulo/server/tabletserver/SimpleLRUCacheTest.java

Modified: accumulo/trunk/server/src/test/java/org/apache/accumulo/server/tabletserver/SimpleLRUCacheTest.java
URL: http://svn.apache.org/viewvc/accumulo/trunk/server/src/test/java/org/apache/accumulo/server/tabletserver/SimpleLRUCacheTest.java?rev=1398090&r1=1398089&r2=1398090&view=diff
==============================================================================
--- accumulo/trunk/server/src/test/java/org/apache/accumulo/server/tabletserver/SimpleLRUCacheTest.java (original)
+++ accumulo/trunk/server/src/test/java/org/apache/accumulo/server/tabletserver/SimpleLRUCacheTest.java Sun Oct 14 14:26:40 2012
@@ -21,7 +21,7 @@ import static org.junit.Assert.*;
 import org.junit.Test;
 
 public class SimpleLRUCacheTest {
-  
+
   @Test
   public void test() {
     SimpleLRUCache<Integer> test = new SimpleLRUCache<Integer>(4);
@@ -34,5 +34,11 @@ public class SimpleLRUCacheTest {
     test.add(3);
     test.add(4);
     assertFalse(test.contains(0));
+    test.add(2);
+    test.add(2);
+    test.add(2);
+    test.add(2);
+    assertTrue(test.contains(3));
+    assertTrue(test.contains(4));
   }
 }