1. Shuji Watanabe
  2. tddbc-sapporo

Commits

shuji.w6e  committed 322f133

add getSize test

  • Participants
  • Parent commits 07272d0
  • Branches default

Comments (0)

Files changed (2)

File src/main/java/tddbc/LRUCache.java

View file
         return cacheSize;
     }
 
+    public int getSize() {
+        return 0;
+    }
+
 }

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

View file
     }
     
     @Test
-    public void get_cache_size() throws Exception {
+    public void getCache_size() throws Exception {
         assertThat(target.getCacheSize(), is(3));
     }
+    
+    @Test
+    public void getSize() throws Exception {
+        assertThat(target.getSize(), is(0));
+    }
 }