Commits

Anonymous committed eb77180

add size_max method

  • Participants
  • Parent commits 6eed1ce

Comments (0)

Files changed (1)

File src/test/java/tddbc/LRUCacheTest.java

         target.put("a", "dataA");
         assertThat(target.getSize(), is(1));
     }
+    
+    @Test
+    public void size_max() throws Exception {
+        target.put("a", "dataA");
+        target.put("b", "dataB");
+        target.put("c", "dataC");
+        assertThat(target.getSize(), is(3));
+    }
 }