package com.darcycasselman.cachedemo;
import static org.junit.Assert.*;

import org.junit.Test;


public class LruCacheTest {

	@Test
	public void testAddItem() {
		String key = "key";
		String value = "value";
		
		LruCache cache = new LruCacheImpl();
		cache.put(key, value);
		
		assertEquals(value, cache.get(key));
	}
	
	@Test
	public void testGetMaxSize() {
		int maxSize = 3;
		
		LruCache cache = new LruCacheImpl(3);
		
		assertEquals(maxSize, cache.getMaxSize());
	}
}

@@ -470,10 +470,172 @@
 ());%0A%09%7D%0A
+%09%0A%09@Test%0A%09public void testToString() %7B%0A%09%09LruCache cache = new LruCacheImpl();%0A%09%09cache.put(%22key%22, %22value%22);%0A%09%09%0A%09%09assertEquals(%22%7Bkey=value%7D%22, cache.toString());%0A%09%7D%0A
 %7D%0A

Add failing toString test.