Commits

Anonymous committed 6eed1ce

rename getSize method to size add size_1 test

Comments (0)

Files changed (2)

src/main/java/tddbc/LRUCache.java

     }
 
     public int getSize() {
-        return 0;
+        return container.size();
     }
 
 }

src/test/java/tddbc/LRUCacheTest.java

     }
     
     @Test
-    public void getSize() throws Exception {
+    public void size() throws Exception {
         assertThat(target.getSize(), is(0));
     }
+    
+    @Test
+    public void size_1() throws Exception {
+        target.put("a", "dataA");
+        assertThat(target.getSize(), is(1));
+    }
 }